Skip to content
Konjure / spatial intelligence

ignore_number

← Builtin reference

Accepts and ignores one Number; useful as a default slider callback.

Signature

func ignore_number(value: Number) -> Res[Unit, DataError]

It is a concrete function value for Slider.action. The Number is checked then discarded, with no scene or host state update.

Parameters

value: f64
A Number accepted without a state change.

Returns

Res[Unit, DataError]

Ok(Unit).

Examples

Default slider action

ignore_number has the Slider callback type.

Tick 0 · 0.00 s⌘ / Ctrl + EnterThis device
main.kj
Loading the language runtime…
Output 0
No output.
Expected output
(no log output)

Rust definition

Rust interpreter builtin dispatch; Type is func(Number) -> Res[Unit, DataError].

See also