Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: make-keyword , 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.

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-02-18 Di 12:58

Validate