Skip to content

map

map<W, A, B>(f): (data) => Logged<W, B>

Defined in: Core/Logged.ts:63

Transforms the value inside a Logged without affecting the log.

W

A

B

(a) => B

(data): Logged<W, B>

Logged<W, A>

Logged<W, B>

pipe(
  Logged.make<string, number>(5),
  Logged.map(n => n * 2),
); // { value: 10, log: [] }