Logo

Programming-Idioms

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

Idiom #226 Delete last element from list

Remove the last element from the list items.

items.RemoveAt(items.Count - 1);
with Ada.Containers.Vectors;
Items.Delete_Last (Count => 1);

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