JanetDocsPlaygroundI'm feeling luckyGitHub sign in

tarray/slice



    cfunction

    (tarray/slice tarr &opt start end)

    Takes a slice of a typed array from start to end. The range is half
    open, [start, end). Indexes can also be negative, indicating indexing
    from the end of the end of the typed array. By default, start is 0
    and end is the size of the typed array. Returns a new janet array.


0 examplesSign in to add an example
Loading...