Logo

Programming-Idioms

History of Idiom 171 > diff from v32 to v33

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

Version 32

2020-06-25, 11:25:07

Version 33

2020-07-19, 19:00:09

Idiom #171 Add an element at the end of a list

Append element x to the list s.

Idiom #171 Add an element at the end of a list

Append element x to the list s.

Variables
x,s
Variables
x,s
Extra Keywords
push grow
Extra Keywords
push grow
Code
append x xs = xs ++ [x]