Key: # of Occurrences I Index   <<   >>


 

# of occurrences of unique elements of x←?1e6⍴1000


   ¯1+{≢⍵}⌸(⍳1000),x
1009 1007 1060 981 1007 1037 1065 1042 1043 …

a.    ¯1+{≢⍵}⌸(⍳1000),x
b.c ⊣ c[x]+←1 ⊣ c←1000⍴0
c.-2-/¯1,(s≠1↓s,¯1)/⍳⍴s←{⍵[⍋⍵]}x
d.+/(⍳1000)∘.=x