Thanks. I'm trying to get those items which are equal to a specific string, but I keep getting length errors, and I'm not quite sure what's going on:
p=.(/:~)&":"0 (#~ '012334556789' = ]) p 3^~i.9000x |length error | (#~'012334556789'=])p 3^~i.9000 I've used a similar tacit verb when dealing with numbers, but I guess this not working has to do with the fact that it's on strings. On 11 Oct 2011, at 23:18, Henry Rich wrote: > (/: 1&{"1) > >> ./@>@:(1&{"1) > > there are other ways too > > Henry Rich > > On 10/11/2011 6:14 PM, David Vaughan wrote: >> I have strings and a numbers in adjacent boxes, like so: >> >> ┌─────────┬─┐ >> │0 │1│ >> ├─────────┼─┤ >> │1 │1│ >> ├─────────┼─┤ >> │8 │1│ >> ├─────────┼─┤ >> │27 │1│ >> ├─────────┼─┤ >> │46 │1│ >> ├─────────┼─┤ >> │125 │2│ >> ├─────────┼─┤ >> │126 │1│ >> ├─────────┼─┤ >> │334 │1│ >> ├─────────┼─┤ >> │279 │1│ >> ├─────────┼─┤ >> │0001 │1│ >> └─────────┴─┘ >> >> How can I do things like sort or>./ on only the second box of each row? >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm