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