On Sun, May 18, 2014 at 9:56 AM, 'Pascal Jasmin' via Programming < [email protected]> wrote:
> ((1|.(<2)=]each) +:@]^:[each ]) (<'a') ,~ ;/ 1 2 3 2 2 4 2 > Neat... prices=:_3]\ 'Joe';'Ohio';3.25;'Pascal';'Unk';'Unk';'Bob';'Ohio';3.125;'Jane';'Texas';3.75 ] prices ┌──────┬─────┬─────┐ │Joe │Ohio │3.25 │ ├──────┼─────┼─────┤ │Pascal│Unk │Unk │ ├──────┼─────┼─────┤ │Bob │Ohio │3.125│ ├──────┼─────┼─────┤ │Jane │Texas│3.75 │ └──────┴─────┴─────┘ Gasoline prices are doubling in Ohio ((_1|."1(<'Ohio')=]each) +:@:]^:[each ]) prices ┌──────┬─────┬────┐ │Joe │Ohio │6.5 │ ├──────┼─────┼────┤ │Pascal│Unk │Unk │ ├──────┼─────┼────┤ │Bob │Ohio │6.25│ ├──────┼─────┼────┤ │Jane │Texas│3.75│ └──────┴─────┴────┘ ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
