Skip to content

tap

tap<A>(f): (lazy) => Lazy<A>

Defined in: Core/Lazy.ts:82

Runs a side effect on the value without changing it. Fires once, on first evaluate.

A

(a) => void

(lazy) => Lazy<A>

pipe(Lazy.from(() => compute()), Lazy.tap(v => console.log("computed:", v)));