Kaya 0.5.2 reference for Prelude::rep

List of functions and data types in Prelude

String rep(String str, Int x)

Arguments

Usage

Return the string str repeated x times.

str = "Abc";
r = rep(str,4); // "AbcAbcAbcAbc"
r = rep(str,1); // "Abc"
r = rep(str,0); // ""

A negative or zero x will return the empty string

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya