Documentation update
parent
1ff2eaf09c
commit
88092f2c2a
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue