enlist

Syntax

enlist()

Arguments

X can be of any data form.

Details

Returns a vector or tuple composed of X.

  • If X is a scalar, returns a vector.

  • If X is a vector, tuple or of other data forms, returns a tuple.

Examples

enlist(1)
// output
[1]

enlist(`aaa)
// output
["aaa"]

enlist([2022.01.01,2022.01.02,2022.01.03])
// output
([2022.01.01,2022.01.02,2022.01.03])

enlist(["a",2,3])
// output
(("a",2,3))

a = array(INT[], 0, 10).append!([1 2 3, 4 5,6 7 8, 9 NULL])
enlist(a)
// output
([[1,2,3],[4,5],[6,7,8],[9,00i]])