Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: make-eventplayer , Previous: make-cm-line , Up: M , Home: Overview

Clamps Dictionary

make-computed

Function

(make-computed fn &optional (setter nil))

Return a ref-object which recalculates and sets its value using fn whenever a ref-object accessed with get-val in the body of fn is changed and its unwatch fn as values.

Refer to Defining relations in the Clamps documentation for examples.

Arguments

fn Function of no arguments to call whenever a value accessed using get-val in the body of the function is changed.
setter Function of one argument called with the value of the ref-object returned by make-computed whenever it changes.

Author: Orm Finnendahl

Created: 2025-09-17 Mi 17:42

Validate