factor/basis/tuple-arrays/tuple-arrays-docs.factor

14 lines
920 B
Factor
Raw Normal View History

2008-07-14 04:30:33 -04:00
USING: help.syntax help.markup splitting kernel sequences ;
2008-01-12 04:25:27 -05:00
IN: tuple-arrays
2007-09-20 18:09:08 -04:00
HELP: tuple-array
2008-07-14 04:30:33 -04:00
{ $description "The class of packed homogeneous tuple arrays. They are created with " { $link <tuple-array> } ". All elements are of the same tuple class. Mutations done to an element are not copied back to the packed array unless it is explicitly written back. To convert a sequence to a tuple array, use the word " { $link >tuple-array } "." } ;
2007-09-20 18:09:08 -04:00
HELP: <tuple-array>
2008-07-14 04:30:33 -04:00
{ $values { "class" "a tuple class" } { "length" "a non-negative integer" } { "tuple-array" tuple-array } }
{ $description "Creates an instance of the " { $link <tuple-array> } " class with the given length and containing the given tuple class." } ;
HELP: >tuple-array
{ $values { "seq" sequence } { "tuple-array" tuple-array } }
{ $description "Converts a sequence into a homogeneous unboxed tuple array of the type indicated by the first element." } ;