JanetDocsPlaygroundI'm feeling luckyGitHub sign in

accumulate2



    function
    boot.janet on line 856, column 1

    (accumulate2 f ind)

    The 2-argument version of accumulate that does not take an
    initialization value. The first value in ind will be added to the
    array as is, so the length of the return value will be (length ind).


1 exampleSign in to add an example
Loading...
(reduce2     + [1 2 3])  # -> 6
(accumulate2 + [1 2 3])  # -> @[1 3 6]
cellularmitosisPlayground