Logo

Programming-Idioms

Build the list parts consisting of substrings of input string s, separated by the string sep.
New implementation

Be concise.

Be useful.

All contributions dictatorially edited by webmasters to match personal tastes.

Please do not paste any copyright violating material.

Please try to avoid dependencies to third-party libraries and frameworks.

Other implementations
var parts = s.split(sep);
import "strings"
parts := strings.Split(s, sep)
const parts = s.split(sep);
uses sysutils;
parts := s.split([sep]); 
parts = s.split(sep)
parts = s.split(sep)
let parts = s.split(sep);
let parts = s.split(sep).collect::<Vec<&str>>();
let parts: Vec<&str> = s.split(sep).collect();