Name

take-nth

Usage

builtin-function

Syntax

(take-nth step seq)
(take-nth step)

Description

Returns every step item from seq. The second form returns a transducer.

user 1 > (take-nth 1 (series 10))
it: (1 2 3 4 5 6 7 8 9 10)
user 2 > (take-nth 2 (series 10))
it: (1 3 5 7 9)