Ref

object Ref

Cell construction utilities.

Author

Lucas Bubner, 2025

Since

7.0.0

Functions

Link copied to clipboard
fun empty(): RefCell<Nothing?>

Create a RefCell that holds null.

Link copied to clipboard
fun <T> Supplier<T>.lazy(): LazyCell<T>
fun <T> () -> T.lazy(): LazyCell<T>

Convert this supplier to a LazyCell.

Link copied to clipboard
fun <T> of(obj: T): RefCell<T>

Convert obj to a RefCell.

Link copied to clipboard
fun <T> T.ref(): RefCell<T>

Convert this object to a RefCell.

Link copied to clipboard

Attempts to call toString on this object while stripping any additional metadata regarding a Cell, such as stripping RefCell|Content from wrapped toString()| to Content from wrapped toString().