I have a problem in APL which involves getting values and scoring them like a poker game. So I used
CHARS⍸CAR3
5 29 30 8 29 23 5
34 34 33 2 34 3 34
6 10 10 15 6 15 15
Which is an integer representation of characters in "deck" of cards I then used
{⍺,⍴⍵}⌸(HAND3[1;])
That returns the frequency of each letters index, for example the letter S appears 2 times denoted by the 29 occurring in the second row. I can't figure out how to do this for each row of my matrix which is 3 sets of 3x7 matrices the function only returns the first row
5 2
29 2
30 1
8 1
23 1
When I tried to do it for each row, it returns the frequency of all the characters and doesn't do it for each set separately. In short I need it to do the function separately for each Hand of Cards.