Array.rslice()

From ZCubes Wiki
Revision as of 03:09, 8 May 2020 by Devika (talk | contribs) (→‎Array.rslice(Begin, End))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Array.rslice(Begin, End)

Same as Array.slice but from the right side. Both Begin and End are from the ends. Same as Array.reverse().slice(Begin,End).reverse()

[1,2,3,4,5].rslice(1,2)

[4]

[1,2,3,4,5].rslice(1,3)

[3, 4]

See Also

reverse