Logo

Programming-Idioms

History of Idiom 49 > diff from v35 to v36

Edit summary for version 36 by Debaran:
New Scala implementation by user [Debaran]

Version 35

2019-01-06, 03:34:19

Version 36

2019-02-02, 02:03:06

Idiom #49 Split a space-separated string

Build list chunks consisting in substrings of input string s, separated by one or more space characters.

Illustration

Idiom #49 Split a space-separated string

Build list chunks consisting in substrings of input string s, separated by one or more space characters.

Illustration
Code
val chunks = s.split(" ")