Documentation update

db4
Slava Pestov 2008-04-03 05:27:38 -05:00
parent 1ff2eaf09c
commit 88092f2c2a
1 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,9 @@ $nl
ARTICLE: "enums" "Enumerations"
"An enumeration provides a view of a sequence as an assoc mapping integer indices to elements:"
{ $subsection enum }
{ $subsection <enum> } ;
{ $subsection <enum> }
"Inverting a permutation using enumerations:"
{ $example "USING: assocs sorting prettyprint ;" ": invert <enum> >alist sort-values keys ;" "{ 2 0 4 1 3 } invert ." "{ 1 3 0 4 2 }" } ;
HELP: enum
{ $class-description "An associative structure which wraps a sequence and maps integers to the corresponding elements of the sequence."