Perhaps it is time for you to learn J ;-)
(,x) {iota} y <=> , x {iota} y does not
apply in APL either. e.g. if x is a matrix with
more than one row then the LHS gives a result but
the RHS signals error. Perhaps you meant
x {iota} ,y <=> , x{iota}y .
i. is far superior to the APL iota (looking
for items is far superior to looking for atoms).
----- Original Message -----
From: Randy MacDonald <[EMAIL PROTECTED]>
Date: Friday, July 14, 2006 8:26 am
Subject: Re: [Jprogramming] Explicit-to-tacit query
> Hello Roger;
>
> Point taken. In fact, my attempt at reworking:
>
> 13 : ',x. i. y.'
> [: , i.
>
> doesn't apply because
>
> (,x) {iota} y <=> , x {iota} y
>
> is an identity that only works in APL.
>
> Moral: {iota} is not i.
> ----- Original Message -----
> From: "Roger Hui" <[EMAIL PROTECTED]>
> To: "Programming forum" <[email protected]>
> Sent: Friday, July 14, 2006 12:07 PM
> Subject: Re: [Jprogramming] Explicit-to-tacit query
>
>
> > Because it is not the same verb. , i. ] is
> > equivalent to (x,y) i. y . In fact:
> >
> > 13 : '(x,y) i. y'
> > , i. ]
> >
> >
> >
> > ----- Original Message -----
> > From: Randy MacDonald <[EMAIL PROTECTED]>
> > Date: Friday, July 14, 2006 7:36 am
> > Subject: Re: [Jprogramming] Explicit-to-tacit query
> >
> >> Hello Roger;
> >>
> >> Why not:
> >>
> >> ,i.]
> >
> >> ----- Original Message -----
> >> From: "Roger Hui" <[EMAIL PROTECTED]>
> >> To: "Programming forum" <[email protected]>
> >> Sent: Friday, July 14, 2006 10:31 AM
> >> Subject: Re: [Jprogramming] Explicit-to-tacit query
> >>
> >>
> >> > 13 : n uses a set of heuristics to do its work.
> >> > Sometimes you can do better than what it does.
> >> > If I were translating (,x) i. y I would have
> >> > written ,@[ i. ] .
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm