JanetDocsI'm feeling luckyGithub sign in

partition



    function
    boot.janet on line 1452, column 1

    (partition n ind)
    
    Partition an indexed data structure 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)]
sogaiu