JanetDocsSourcePlaygroundI'm feeling luckyCommunityGitHub sign in

array/push

core-api


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

    (array/push arr & xs)

    Push all the elements of xs to 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