Logo

Programming-Idioms

  • Perl
  • Fortran

Idiom #226 Delete last element from list

Remove the last element from the list items.

items = items(1:size(items)-1)
pop(@items);
with Ada.Containers.Vectors;
Items.Delete_Last (Count => 1);

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