New implementation

Be concise.

Be useful.

All contributions dictatorially edited by webmasters to match personal tastes.

Please do not paste any copyright violating resource.

Please try to avoid dependencies to third-party libraries and frameworks.

Other implementations
with Ada.Containers.Vectors;
use Ada.Containers;
N : Count_Type := X.Length;
size_t n = sizeof(x)/sizeof(*x);
(def n (count x))
size_t n = x.size();
int n = x.Length;
using System.Collections.Generic;
int n = x.Count;
auto n = x.length;
import std.range.primitives;
n = walkLength(x);
int n = x.length;
n = Enum.count(x)
N = length(X).
n := len(x)
n = length x
var n = x.length;
int n = x.size();
int n = x.length;
(setf n (length x))
local n = #x
$n = count($x);
n := length(x);
my $N = @x;
n = len(x)
n = x.length
let n = x.len();

val n = x.size
(define n (length x))