/** * @tsplus pipeable-operator NonEmptyImmutableArray & * @tsplus static NonEmptyImmutableArray.Aspects concat * @tsplus pipeable NonEmptyImmutableArray.Aspects concat */ export function concat(that: ImmutableArray) { return (self: NonEmptyImmutableArray): NonEmptyImmutableArray => new ImmutableArray([...self.array, ...that.array] as any) as NonEmptyImmutableArray } /** * Concatenates two NonEmptyImmutableArray together * * @tsplus operator NonEmptyImmutableArray + */ export function concatOperator( self: NonEmptyImmutableArray, that: NonEmptyImmutableArray ): NonEmptyImmutableArray export function concatOperator( self: NonEmptyImmutableArray, that: ImmutableArray ): NonEmptyImmutableArray export function concatOperator( self: NonEmptyImmutableArray, that: ImmutableArray ): NonEmptyImmutableArray { return self & that }