Next: , Previous: slice, Up: Composition functions


4.3.4.10 stride

— Function: grid:stride grid stride &key destination

Create a new grid with every stride-th element.

A stride is the grid resulting from selection of elements at regular intervals.
     (stride #(1 2 3 4 5 6 7 8) 3)
     #(1 4 7)

The resultant grid will have rank one (vector) regardless of the source rank.