JanetDocsI'm feeling luckyGithub sign in

array



    cfunction

    (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>]
cellularmitosis
@[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]
cellularmitosis