JanetDocsI'm feeling luckyGithub sign in

array/push



    cfunction

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