JanetDocsI'm feeling luckyGitHub sign in

interleave



    function
    boot.janet on line 1469, column 1

    (interleave & cols)

    Returns an array of the first elements of each col, then the second,
    etc.


2 examplesSign in to add an example
Loading...
# excess elements of the longer list are discarded
(interleave [1] 
            [2 4] 
            [3 6])
# -> @[1 2 3]
Krasjet
(interleave [:a :b :c] 
            [1 2 3] 
            ["x" "y" "z"])
# => @[:a 1 "x" :b 2 "y" :c 3 "z"]
sogaiu