lift2
Defer a binary transformation, forcing inputs in left-to-right order.
The right input is not forced if the left input fails. This is sequential composition, not parallel scheduling. Both handles are captured by value, retaining their identities, not by borrowing the caller's variables.
Parameters
fun | An @safe callable accepting both values; may return void. |
left | Left non-void thunk handle. |
right | Right non-void thunk handle. |
Returns
A pending thunk with the transformation's payload type.
Throws
Nothing on account of the recipes until forcing; allocation can fail.