Logo

Programming-Idioms

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

Idiom #226 Delete last element from list

Remove the last element from the list items.

array_pop($items);

it returns the value of the last element of array, or null if emptied
with Ada.Containers.Vectors;
Items.Delete_Last (Count => 1);

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