split method

Iterable<Characters> split(
  1. Characters pattern
)

Splits this sequence of characters at each occurrence of pattern.

Returns a lazy iterable of characters that were separated by pattern. The iterable has at most maxParts elements if a positive maxParts is supplied.

Implementation

Iterable<Characters> split(Characters pattern) {
  return text.split(pattern);
}