Some of the variants have special code, which is much faster if you are
repeating the lookup. The fast ones are
lookup {~ reference i. ]
and
reference&i. { lookup"_
or
(reference i. ]) { lookup"_
These build the hash table for reference only when the verb is defined.
And when applied to characters, they work by building a translation table.
Henry Rich
On 2/18/2013 8:35 AM, Raul Miller wrote:
Note also that the usual lookup pattern is
(reference i. values) { lookup
For example:
(2 3 5 7 i. 2 3) { 'this';'is';'a';'test';'...'
But, there are many variations on this theme.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm