Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Java
int n = x.size();

x implements java.util.List.
int n = x.length;

x is an array.
with Ada.Containers.Vectors;
use Ada.Containers;
N : Count_Type := X.Length;

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