On Sun, Aug 9, 2009 at 7:38 AM, John Randall<[email protected]> wrote: > data=:(i.4),(i.3),(i.4),(i.5) > dot=:+/ .* > probe=:i.4 > (#probe) probe&dot\ data > 14 8 6 8 5 5 8 14 8 6 8 14 20
The problem with a direct conversion to tacit is that probe&dot\ happens at "compile time" instead of "run time" -- you are deriving a new verb each time you run this expression, and tacit programming uses a fixed set of verbs. To avoid this issue, you can use box as the verb for \ and then work from there: probe (<@[ dot&> #...@[ <\ ]) data 14 8 6 8 5 5 8 14 8 6 8 14 20 -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
