This language bar is your friend. Select your favorite languages!

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
#Edit dateEdit SummaryEditor
👁 Δ 32 2018-12-01, 16:58 New Scheme implementation by user [benjamin] _benjamin
👁 Δ 31 2017-10-21, 18:37 [JS] Space characters only programming-idioms.org
👁 Δ 30 2017-06-05, 15:31 New C implementation by user [Dodopod] Dodopod
👁 Δ 29 2016-11-15, 22:49 [JS] Better use var programming-idioms.org
👁 Δ 28 2016-11-05, 13:41 New Lua implementation by user [Nepta] programming-idioms.org
👁 Δ 27 2016-11-05, 03:16 New Lua implementation by user [Nepta] Nepta
👁 Δ 26 2016-09-27, 15:57 Updated picture URL by user [programming-idioms.org] programming-idioms.org
👁 Δ 25 2016-05-29, 09:25 [Python] It should be splitting on one or more_ spaces ???
👁 Δ 24 2016-05-16, 07:33 [Go] Describe type in comment programming-idioms.org
👁 Δ 23 2016-05-16, 07:32 New Go implementation by user [programming-idioms.org] programming-idioms.org
👁 Δ 22 2016-04-07, 21:01 [Ruby] string#splits splits on whitespace by default
👁 Δ 21 2016-02-18, 16:57 [Pascal] Fixed everything
👁 Δ 20 2016-02-07, 21:17 [Pascal] Fixed everything
👁 Δ 19 2016-02-07, 17:39 [Pascal] Proper import
👁 Δ 18 2016-01-26, 02:30 New Erlang implementation by user [elbrujohalcon]
👁 Δ 17 2015-11-30, 12:37
👁 Δ 16 2015-10-29, 14:05
👁 Δ 15 2015-09-23, 15:42
👁 Δ 14 2015-09-23, 15:42
👁 Δ 13 2015-09-04, 18:05
👁 Δ 12 2015-09-04, 12:54
👁 Δ 11 2015-09-03, 16:25
👁 Δ 10 2015-08-22, 21:11
👁 Δ 9 2015-08-21, 23:24
👁 Δ 8 2015-08-21, 23:23
👁 Δ 7 2015-08-21, 20:33
👁 Δ 6 2015-08-20, 17:20
👁 Δ 5 2015-08-19, 15:13
👁 Δ 4 2015-08-19, 15:10
👁 Δ 3 2015-08-01, 17:13
👁 Δ 2 2015-07-31, 19:36
1 2015-05-06, 21:04