Method in cell · Ref coil-stdlib

Ref::update

pub fn update(T -> T f) -> T
Import
use cell::{Ref};
Source: src/cell.hy

Store f(current) and return the new value.

Called on a Ref value as value.update(…).

Parameters#

NameType
fT -> T

Returns#

T

See also#

↑ ↓ navigate ↵ open