R.E. Boss and Raul Miller, I salute your ingenuity. I'm still rooting for the original nubcount because it has that versatility of going well with either numeric or non-numeric arrays.
Martin Pelletier On 2010-08-13 15:43, Raul Miller wrote: > On Fri, Aug 13, 2010 at 3:31 PM, R.E. Boss<[email protected]> wrote: > >> ({.,#)/.~ 10 40 10 10 20 30 40 >> 10 3 >> 40 2 >> 20 1 >> 30 1 >> > Or (faster): > (~.,. #/.~) 10 40 10 10 20 30 40 > 10 3 > 40 2 > 20 1 > 30 1 > > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
