Function str_split

Source
pub fn str_split(input: &str, separator: &str) -> Vec<String>
Expand description

Basic (non-escaped) split replicating the original StageL strSplit. Unlike str.split(sep) in many languages, this custom implementation:

  • Does not collapse consecutive separators
  • Returns trailing empty element if the input ends with the separator