Array.allslices()

From ZCubes Wiki
Revision as of 07:19, 13 February 2020 by Devika (talk | contribs) (→‎Slices)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Array.allslices(SliceSize)

  • 1..100.allslices() gives slices of numbers of length 1 to end.
  • 1..10.allslices(true) gives reverse slices of length 1 to end.
  • 1..10.allslices(true)
10
10 9
10 9 8
10 9 8 7
10 9 8 7 6
10 9 8 7 6 5
10 9 8 7 6 5 4
10 9 8 7 6 5 4 3
10 9 8 7 6 5 4 3 2
10 9 8 7 6 5 4 3 2 1

See Also