jan tolenaar / kiezellisp / index-of-everything

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.

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