Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Ruby

Idiom #226 Delete last element from list

Remove the last element from the list items.

items.pop

items.pop(2) would remove (and return) the last 2.
with Ada.Containers.Vectors;
Items.Delete_Last (Count => 1);

New implementation...
< >
programming-idioms.org