3 ms·
That is how you destructure the list, with the syntax (x:xs) where x is the first element of the list, and xs is the remainder of the list.
by mhitza 13y ago
That is how you destructure the list, with the syntax (x:xs) where x is the first element of the list, and xs is the remainder of the list.