JanetDocsPlaygroundI'm feeling luckyGitHub sign in

partition



    function
    boot.janet on line 1678, column 1

    (partition n ind)

    Partition an indexed data structure `ind` into tuples of size `n`. 
    Returns a new array.


1 exampleSign in to add an example
Loading...
(partition 2 [:a 1 :b 2 :c 3])
# => @[(:a 1) (:b 2) (:c 3)]
sogaiuPlayground