sequences.abbrev: add docs - not much, but a start
parent
ea7cbd2b5a
commit
08814c3308
|
@ -0,0 +1,28 @@
|
||||||
|
! Copyright (C) 2009 Maximilian Lupke.
|
||||||
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
|
USING: assocs help.markup help.syntax sequences ;
|
||||||
|
IN: sequences.abbrev
|
||||||
|
|
||||||
|
HELP: abbrev
|
||||||
|
{ $values
|
||||||
|
{ "seqs" sequence }
|
||||||
|
{ "assoc" assoc }
|
||||||
|
}
|
||||||
|
{ $description "Calculates an assoc of { prefix sequence } pairs with prefix being an prefix of each element of sequence for each element in " { $snippet "seqs" } "." } ;
|
||||||
|
|
||||||
|
HELP: unique-abbrev
|
||||||
|
{ $values
|
||||||
|
{ "seqs" sequence }
|
||||||
|
{ "assoc" assoc }
|
||||||
|
}
|
||||||
|
{ $description "Calculates an assoc of { prefix { sequence } } pairs with prefix being an unambiguous prefix of sequence in seqs." } ;
|
||||||
|
|
||||||
|
ARTICLE: "sequences.abbrev" "Examples of abbrev usage"
|
||||||
|
"It is probably easiest to just run examples to understand abbrev."
|
||||||
|
{ $code
|
||||||
|
"{ \"hello\" \"help\" } abbrev"
|
||||||
|
"{ \"hello\" \"help\" } unique-abbrev"
|
||||||
|
}
|
||||||
|
;
|
||||||
|
|
||||||
|
ABOUT: "sequences.abbrev"
|
Loading…
Reference in New Issue