Thunks are "lazy" values that are evaluated when first accessed using Thunk.get/map/bind
.
The value is then stored and not recomputed for all further accesses.
Constructor
Thunk.mk.{u}
Constructs a new thunk from a function Unit → α
that will be called when the thunk is forced.
Fields
private fn : Unit → α
Extract the getter function out of a thunk. Use Thunk.get
instead.