/** * @tsplus static ImmutableArray.Aspects flatMap * @tsplus pipeable ImmutableArray flatMap */ export function flatMap(f: (a: A) => ImmutableArray) { return (self: ImmutableArray): ImmutableArray => new ImmutableArray(self.array.flatMap(x => f(x).array)) }