Handbook
Glossary
split-message ( string -- prefix command parameters trailing )
Vocabulary
irc
.
messages
.
parser
.
private
Inputs
string
an
object
Outputs
prefix
an
object
command
an
object
parameters
an
object
trailing
an
object
Definition
USING:
kernel
sequences
splitting
;
IN:
irc.messages.parser.private
:
split-message
( string -- prefix command parameters trailing )
":"
?head
[
" "
split1
]
[
f
swap
]
if
":"
split1
[
split-words
harvest
unclip
swap
]
dip
;