We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
This follows on from ideas in:
(m) means "mutates in place"
| Language | x :: xs | xs ++ [x] | xs ++ ys |--|--|--| | Lean List | cons x xs | concat x xs | append xs ys | Python | xs.insert(0, x) | xs.append(x) (m) | operator.concat
x :: xs
xs ++ [x]
xs ++ ys
List
cons x xs
concat x xs
append xs ys
xs.insert(0, x)
xs.append(x)
operator.concat
There was an error while loading. Please reload this page.