]> gitweb.factorcode.org Git - factor.git/blob - extra/pair-rocket/pair-rocket-docs.factor
Update some copyright headers to follow the current convention
[factor.git] / extra / pair-rocket / pair-rocket-docs.factor
1 ! Copyright (C) 2009 Joe Groff.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: help.markup help.syntax multiline ;
4 IN: pair-rocket
5
6 HELP: =>
7 { $syntax "a => b" }
8 { $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." }
9 { $examples
10 { $unchecked-example "USING: pair-rocket prettyprint ;
11
12 H{ \"foo\" => 1 \"bar\" => 2 } ."
13 "H{ { \"foo\" 1 } { \"bar\" 2 } }" }
14 }
15 ;