JanetDocsSourcePlaygroundTutorialsI'm Feeling luckyCommunityGitHub sign in

interpose

core-api


    function
    boot.janet on line 2102, column 1

    (interpose val x)

    Returns an array of the values of `x` separated by `val`.

    `x` can be a bytes, indexed, fiber or abstract type with suitable 
    `get` and `next` methods.


2 examplesSign in to add an example
Loading...
(interpose 0 [1])
# -> @[1]
KrasjetPlayground
(interpose 0 [1 2 3])
# -> @[1 0 2 0 3]
KrasjetPlayground