lift1
fn
auto lift1(alias fun, T)(Thunk!T input) if (!is(T == void))Defer a unary transformation of a thunk's value.
Parameters
fun | An @safe callable accepting the input value; may return void. |
input | An initialized, non-void thunk handle, copied without forcing. |
Returns
A pending thunk retaining the input's computation identity.
Throws
Nothing on account of the recipe until forcing; allocation can fail.