/** * Constructs a new collection of events for each event in this collection of * events, collecting them back into a single collection of events. * * @tsplus static ParSeq.Aspects flatMap * @tsplus pipeable ParSeq flatMap */ export function flatMap(f: (a: A) => ParSeq) { return (self: ParSeq): ParSeq => self.fold(ParSeq.empty(), f, ParSeq.combineSeq, ParSeq.combinePar) }