lift1

fnauto lift1(alias fun, T)(Thunk!T input) if (!is(T == void))

Defer a unary transformation of a thunk's value.

Parameters

funAn @safe callable accepting the input value; may return void.
inputAn 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.