Go to the first, previous, next, last section, table of contents.


chopString[

Function: chopString[ { stg delim -> [stgs] }
file: job.t
package: muf
status: alpha

Both arguments are usually strings (although the delim argument may instead be a character): All instances of delim are removed from stg, and the resulting fragments returned in a block:

Stack:
"ag::995:30:Alexander the Geek:/q/ag:msh" ":" chopString[
Stack: [ "ag" "" "995" "30" "Alexander the Geek" "/q/ag" "msh" |
"" |delete
Stack: [ "ag" "995" "30" "Alexander the Geek" "/q/ag" "msh" |

A more frequent case is splitting on blanks:

Stack:
"now is the time " " " chopString[ "" |delete
Stack: [ "now" "is" "the" "time" |

As a special case, a null delimiter string breaks the string into one-character substrings:

Stack:
"Alexandria" "" chopString[
Stack: [ "A" "l" "e" "x" "a" "n" "d" "r" "i" "a" |
|unsort
Stack: [ "a" "n" "x" "r" "i" "d" "e" "a" "A" "l" |
]join
Stack: "anxrideaAl"
stringDowncase stringMixedcase
Stack: "Anxrideaal"


Go to the first, previous, next, last section, table of contents.