Signature: listAppend(list: List<T>, value: T) -> List<T>

Description: Returns a new list with value at the end. O(log32 n) amortised.

Parameters

Returns: List

Example

listAppend([1, 2], 3)  // [1, 2, 3]