Logo

Programming-Idioms

History of Idiom 224 > diff from v20 to v21

Edit summary for version 21 by mandober:
New Haskell implementation by user [mandober]

Version 20

2020-07-15, 15:33:07

Version 21

2020-07-19, 19:01:03

Idiom #224 Add element to the beginning of the list

Insert element x at the beginning of list items.

Idiom #224 Add element to the beginning of the list

Insert element x at the beginning of list items.

Extra Keywords
prepend prefix start
Extra Keywords
prepend prefix start
Code
prepend x xs = x : xs