The OpenD Programming Language

frequency

Returns an associative array of counts of every element in input. * Works w/ any iterable. * * Examples: * --- * int[] foo = [1,2,3,1,2,4]; * uintint frq = frequency(foo); * assert(frq.length == 4); * assert(frq[1] == 2); * assert(frq[4] == 1); * ---

uint[ForeachType!(T)]
frequency
(
T
)
()
if ()

Meta