JanetDocsPlaygroundI'm feeling luckyGitHub sign in

array/push



    cfunction
    src/core/array.c on line 181, column 1

    (array/push arr x)

    Insert an element in the end of an array. Modifies the input array 
    and returns it.


1 exampleSign in to add an example
Loading...
(def a @[])
(array/push a 1)  # => @[1]
a                 # => @[1]
(array/push a 2)  # => @[1 2]
a                 # => @[1 2]
cellularmitosisPlayground