Skip to content

map

map<A, B>(f): (lazy) => Lazy<B>

Defined in: Core/Lazy.ts:59

Transforms the result of a Lazy without triggering evaluation.

A

B

(a) => B

(lazy) => Lazy<B>

pipe(Lazy.from(() => loadConfig()), Lazy.map(cfg => cfg.port));