toList

HC Data Structure Primitives Constructors toList
Struct combine

toList atable
toList anArray
toList anIntArray
toList anInt16Array
toList aWord
tolist aNumber


When atable is the input, outputs a new list with sublists of the form [name value]. The names are the names of the members, the values are the member's values. Else toList just converts the input type to List. aWord is converted to a list of characters, the same with aNumber.

Example:

t=Table 5
t'a=1234
show t'a		;1234
t'b=[Hallo World!]
show t		;[a 1234][b [Hallo World!]]
l=TableToList t
show l		;[[a 1234][b [Hallo World!]]]

show toList {a b c}	;[a b c]
show toList intArray {1 2 3}	;[1 2 3]
show toList int16Array {1 2 3}	;[1 2 3]

show toList "Hallo	;[h a l l o]
show toList 1234	;[1 2 3 4]
show toList 12.345	;[1 2 . 3 4 5]

Example:

References:

Struct combine