Kaya 0.5.2 reference for Strings::tail

List of functions and data types in Strings

String tail(String str)

Arguments

Usage

Get all but the first character in a String. Useful with head for iteration over strings.

str = "abcdef";
i = 0;
do {
  i += Int(head(str));
  str = tail(str);
} while (length(str) > 0);

Related

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