Removes the last element from the list.
The source list.
The picked list.
expect(init(empty())).toStrictEqual(empty());expect(toArray(init(fromArray([5, 2, 1, 3])))).toStrictEqual([5, 2, 1]); Copy
expect(init(empty())).toStrictEqual(empty());expect(toArray(init(fromArray([5, 2, 1, 3])))).toStrictEqual([5, 2, 1]);
Removes the last element from the list.