Kaya 0.5.3 reference for Strings::words

List of functions and data types in Strings

[String] words(String s)

Arguments

Usage

Splits a String into whitespace separated words.

x = "The quick brown    fox jumps
	over the lazy dog";
ws = words(x); // ["The","quick","brown","fox","jumps",
               //  "over","the","lazy","dog"];

Related

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