Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: evt-amp , Previous: envelope* , Up: E , Home: Overview

Clamps Dictionary

every-nth

Function

(every-nth list n &key (offset 0))

Return a sublist of list containing every element with an index being a multiple of n.

Arguments

list Input list.
n Positive integer denoting the index distance between elements.
:offset Positive integer denoting offset into the input list.

Example

(every-nth '(9 10 11 12 13 14 15 16 17 18 19 20) 3 :offset 1)
;; => (10 13 16 19)

Author: Orm Finnendahl

Created: 2025-02-18 Di 12:58

Validate