JanetDocsPlaygroundI'm feeling luckyGitHub sign in

flatten-into



    function
    boot.janet on line 1513, column 1

    (flatten-into into xs)

    Takes a nested array (tree), and appends the depth first traversal 
    of that array to an array 'into'. Returns array into.


1 exampleSign in to add an example
Loading...
(flatten-into @[1 2 3] @[[4 5 6] @[7 8 9] @[10 11 12]]) # => @[1 2 3 4 5 6 7 8 9 10 11 12]
jgartePlayground