safeDeref

Wraps an object in a safe dereferencing wrapper resembling a Maybe monad.

If the object is null, then any further member dereferences will just return a wrapper around the .init value of the wrapped type, instead of dereferencing null. This applies recursively to any element in a chain of dereferences.

safeDeref
(
T
)
(
T t
)

Return Value

Type: auto

A wrapper around the given type, with "safe" member dereference semantics.

Meta