]> gitweb.factorcode.org Git - factor.git/blob - extra/pair-rocket/pair-rocket-docs.factor
maintain gml, euler, flatland, pong, multi-methods, pair-rockets, variables.
[factor.git] / extra / pair-rocket / pair-rocket-docs.factor
1 ! (c)2009 Joe Groff bsd license
2 USING: help.markup help.syntax multiline ;
3 IN: pair-rocket
4
5 HELP: =>
6 { $syntax "a => b" }
7 { $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." }
8 { $examples
9 { $unchecked-example "USING: pair-rocket prettyprint ;
10
11 H{ \"foo\" => 1 \"bar\" => 2 } ."
12 "H{ { \"foo\" 1 } { \"bar\" 2 } }" }
13 }
14 ;