Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: do-proplist , Previous: delete-props , Up: D , Home: Overview

Clamps Dictionary

differentiate

Function

(differentiate seq &key (modifier #'-) (start (elt seq 0)))

Return differences or the results of applying modifier to subsequent elements of seq.

Arguments

seq Proper sequence to integrate.
:modifier Function to apply to all elements accumulationg the results.
:start Number denoting the start value.

Examples

(differentiate '(0 2 3 7 12)) ; => (0 2 1 4 5)

(differentiate #(0 2 3 7 12) :start 3) ; => #(3 2 1 4 5)

(differentiate '(1 2 6 12 48) :modifier #'/) ; => (1 2 3 2 4)

(differentiate (integrate '(17 2 4))) ; => (17 2 4)

See also

Author: Orm Finnendahl

Created: 2025-06-08 So 16:56

Validate