fromString method

Enumerable<String> fromString (String s)

Creates an enumerable from a String.

Converts a String into its character components and creates an enumerable out of the resulting collection. (As String doesn't extend Iterable, this is a convenience method to iterate over every character in the String as well as make it compatable with other enumerable methods.)

Implementation

static Enumerable<String> fromString(String s) {
  return StringEnumerable(s);
}