Logo

Programming-Idioms

History of Idiom 49 > diff from v17 to v18

Edit summary for version 18 by :
New Erlang implementation by user [elbrujohalcon]

Version 17

2015-11-30, 12:37:29

Version 18

2016-01-26, 02:30:59

Idiom #49 Split a space-separated string

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

Idiom #49 Split a space-separated string

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

Code
Chunks = string:tokens(S, [$\s]).