factor/extra/pair-rocket/pair-rocket-docs.factor

16 lines
505 B
Factor

! Copyright (C) 2009 Joe Groff.
! See http://factorcode.org/license.txt for BSD license.
USING: help.markup help.syntax multiline ;
IN: pair-rocket
HELP: =>
{ $syntax "a => b" }
{ $description "Constructs a two-element array from the objects immediately before and after the " { $snippet "=>" } ". This syntax can be used inside sequence and assoc literals." }
{ $examples
{ $unchecked-example "USING: pair-rocket prettyprint ;
H{ \"foo\" => 1 \"bar\" => 2 } ."
"H{ { \"foo\" 1 } { \"bar\" 2 } }" }
}
;