/** * @tsplus static effect/core/testing/Gen.Aspects map * @tsplus pipeable effect/core/testing/Gen map */ export function map(f: (a: A) => B) { return (self: Gen): Gen => Gen(self.sample.map( (maybe) => maybe.map((sample) => sample.map(f)) )) }