Logo

Programming-Idioms

History of Idiom 165 > diff from v10 to v11

Edit summary for version 11 by foo:
New Haskell implementation by user [foo]

Version 10

2017-11-14, 15:08:21

Version 11

2017-12-22, 10:36:15

Idiom #165 Last element of list

Assign to variable x the last element of list items.

Idiom #165 Last element of list

Assign to variable x the last element of list items.

Code
x = last xs
Comments bubble
xs - list of homogenious elms
x - the last elm of this list