Handbook
Glossary
=>
Vocabulary
pair-rocket
Syntax
a => b
Word description
Constructs a two-element array from the objects immediately before and after the
=>
. This syntax can be used inside sequence and assoc literals.
Examples
USING: pair-rocket prettyprint ; H{ "foo" => 1 "bar" => 2 } .
H{ { "foo" 1 } { "bar" 2 } }
Definition
USING:
arrays
kernel
parser
sequences
;
IN:
pair-rocket
SYNTAX:
=>
dup
pop
scan-object
2array
suffix!
;