]> gitweb.factorcode.org Git - factor.git/blob - extra/tuple-arrays/tuple-arrays-docs.factor
Merge branch 'master' of git://factorcode.org/git/factor
[factor.git] / extra / tuple-arrays / tuple-arrays-docs.factor
1 USING: help.syntax help.markup splitting kernel sequences ;
2 IN: tuple-arrays
3
4 HELP: tuple-array
5 { $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 } "." } ;
6
7 HELP: <tuple-array>
8 { $values { "class" "a tuple class" } { "length" "a non-negative integer" } { "tuple-array" tuple-array } }
9 { $description "Creates an instance of the " { $link <tuple-array> } " class with the given length and containing the given tuple class." } ;
10
11 HELP: >tuple-array
12 { $values { "seq" sequence } { "tuple-array" tuple-array } }
13 { $description "Converts a sequence into a homogeneous unboxed tuple array of the type indicated by the first element." } ;