/** * Takes a function `Eval => B` and return an `Eval` * * @tsplus static Eval.Aspects extend * @tsplus pipeable Eval extend */ export function extend(f: (fa: Eval) => B) { return (self: Eval): Eval => Eval.succeedNow(f(self)) }