append

Full name: taxi.stdlib.append

Signature

declare extension function <T> append(array1: T[], array2: T[]):T[]

Description

Returns a new collection containing the elements of the first array followed by the elements of the second array.

Neither input array is modified.

find { cart: ShoppingCart } as {
   allItems: cart.regularItems.append(cart.saleItems)
}

Examples

Concatenates two arrays, returning a new array with elements of the first followed by elements of the second.

Try it out

Schema
Query Plan
Play with this snippet by editing it here, or edit it on Taxi Playground
Result
Query failed
Next
Welcome to Taxi