View/Edit #29:explode_all

Switch to edit mode.

Name(s): explode_all
1:  " $string_utils:explode_all(subject [, break])"
2:  " Return a list of those substrings of subject separated by runs of break (which defaults to a space)."
3:  " Same as :explode(), but breaks at *every* instance of 'break'."
4:  {subject, ?break_ = " "} = args
5:  subject = subject + break_
6:  parts = {}
7:  while (subject)
8:    i = index(subject, break_)
9:    parts = {@parts, subject[1..i - 1]}
10:   subject = subject[i + length(break_)..$]
11: endwhile
12: return parts
13: "Last modified by Dax (#789) on Sun May 24 00:25:09 1998 EDT."

Verb arguments: this none this
Verb perms: Readable eXecutable NOT-Debug
Verb owned by: Hacker (#60)

You are not logged in.

[home | help | who | search | setup | code]