Logo

Programming-Idioms

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

Idiom #373 Size of set

Set n to the number of elements of the set x.

let n = x.size
int n (x.size());
final aSet = Set();
// omitted: add elements to aSet
final n = aSet.length;
n := len(x)
int n = x.size();
n = len(x)
n = x.size

New implementation...