/** * Concatenates two lists together * * @tsplus pipeable-operator List & * @tsplus static List.Aspects concat * @tsplus pipeable List concat */ export function concat(that: List) { return (self: List): List => that.prependAll(self) } /** * Concatenates two lists together * * @tsplus operator List + */ export function concatOperator(self: List.NonEmpty, that: List.NonEmpty): List export function concatOperator(self: List.NonEmpty, that: List): List.NonEmpty export function concatOperator(self: List, that: List.NonEmpty): List.NonEmpty export function concatOperator(self: List, that: List): List export function concatOperator(self: List, that: List): List { return that.prependAll(self) }