Logo

Programming-Idioms

History of Idiom 49 > diff from v34 to v35

Edit summary for version 35 by mattdaly:
New Csharp implementation by user [mattdaly]

Version 34

2018-12-30, 12:02:06

Version 35

2019-01-06, 03:34:19

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
string[] chunks = s.Split(' ');
Doc URL
https://docs.microsoft.com/en-us/dotnet/api/system.string.split?view=netframework-4.7.2