Logo

Programming-Idioms

History of Idiom 117 > diff from v21 to v22

Edit summary for version 22 by :
New Ada implementation by user [Smaehtin]

Version 21

2016-02-17, 05:38:45

Version 22

2016-02-17, 16:56:07

Idiom #117 Get list size

Set n to the number of elements of list x.

Idiom #117 Get list size

Set n to the number of elements of list x.

Imports
with Ada.Containers.Vectors;
use Ada.Containers;
Code
N : Count_Type := X.Length;