Logo

Programming-Idioms

History of Idiom 165 > diff from v11 to v12

Edit summary for version 12 by foo:
[Haskell] renamed according to conditions

Version 11

2017-12-22, 10:36:15

Version 12

2017-12-22, 10:38:11

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
Code
x = last items
Comments bubble
xs - list of homogenious elms
x - the last elm of this list
Comments bubble
items - list of homogenious elms
x - the last elm of this list