How can I extract the first n lines from each group? For example: for table bb:([]sym:(4#`a),(5#`b);val: til 9)
sym val
-------------
a 0
a 1
a 2
a 3
b 4
b 5
b 6
b 7
b 8
How can I select the first 2 lines of each group using sym?
thanks
source
share