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