]> gitweb.factorcode.org Git - factor.git/blob - extra/qw/qw-docs.factor
factor: trim using lists
[factor.git] / extra / qw / qw-docs.factor
1 ! Copyright (C) 2009 Joe Groff.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: help.markup help.syntax ;
4 IN: qw
5
6 HELP: qw{
7 { $syntax "qw{ lorem ipsum }" }
8 { $description "Marks the beginning of a literal array of strings. Component strings are delimited by whitespace." }
9 { $examples
10 { $unchecked-example "USING: prettyprint qw ;
11 qw{ pop quiz my hive of big wild ex tranny jocks } ."
12 "{ \"pop\" \"quiz\" \"my\" \"hive\" \"of\" \"big\" \"wild\" \"ex\" \"tranny\" \"jocks\" }" }
13 } ;
14
15 ARTICLE: "qw" "Quoted words"
16 "The " { $vocab-link "qw" } " vocabulary offers a shorthand syntax for arrays-of-strings literals." $nl
17 "Construct an array of strings:"
18 { $subsections POSTPONE: qw{ } ;
19
20 ABOUT: "qw"