JanetDocsSourcePlaygroundTutorialsI'm Feeling luckyCommunityGitHub sign in

array/push

core-api


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

    (array/push arr & xs)

    Push all the values of `xs` to the end of an array `arr`. Returns 
    `arr`.


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