How could I count occurrences of the same number in a sorted list?

e.g. list =. 1 2 3 3 4
1 1
2 1
3 2
4 1

or something along those lines.

Thanks.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to