JanetDocsPlaygroundI'm feeling luckyGitHub sign in

array



    cfunction
    src/core/corelib.c on line 404, column 1

    (array & items)

    Create a new array that contains items. Returns the new array.


2 examplesSign in to add an example
Loading...
(array 1 2.3 :a "foo" true nil [] {} (fn []))
# => @[1 2.3 :a "foo" true nil () {} <function 0x7FB2A3F02170>]
cellularmitosisPlayground
@[1 2 3]                 # -> @[1 2 3]
(array 1 2 3)            # -> @[1 2 3]
(array (splice [1 2 3])  # -> @[1 2 3]
(array ;[1 2 3])         # -> @[1 2 3]
cellularmitosisPlayground