On Wed, Mar 25, 2009 at 2:34 AM, Steven Taylor <[email protected]> wrote:
> 3 i. (i. 5) index is useful. I wondered where the convention came from of
> having not found equal the # count of items (since all valid indexes are
> zero to n-1) came from?
I have often used
(list1 i. data ) { list2, other
where list1 and list2 have the same shape and "other" is the item
I want to use for the "missing" case.
Of course,
(list1 i. data ) { list2
can also be useful because this would generate an error when data
contains items not in list1.
That said, for your specific example, I would probably use
3 ~:i.5
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm