Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Elixir
x = List.last(items)

The last() function of the List module returns the last item in the list or nil.
X := Items'Last

X must be declared earlier.

New implementation...