Yes, performance is an issue as reported earlier

  http://www.jsoftware.com/jwiki/System/Interpreter/Requests

for which, I hope, there is potential for improvement.

But you can't beat the notation.
If you can use one token why would you need three?

As shown in the above request, fetch ({::) is also
a great scatter indexer.


--- Brian Schott <[EMAIL PROTECTED]> wrote:

>       Oleg has introduced the use of fetch in places that
> pick has been used traditionally. Does the following
> experiment capture a distinction?
> 
> (B=) <----------my "sig"
> 
> Brian Schott
> Atlanta, GA, USA
> schott DOT bee are eye eh en AT gee em ae eye el DOT com
> http://schott.selfip.net/~brian/
> 
>    ts =: (6!:2);(7!:2)@]
>    y =: i. each;/ ?.500 2$3 10
>    4{.y
> +-----+---+-------------------------+-----------------+
> |     |0 1|0  1  2  3  4  5  6  7  8|0 1 2  3  4  5  6|
> |     |2 3|9 10 11 12 13 14 15 16 17|7 8 9 10 11 12 13|
> +-----+---+-------------------------+-----------------+
>    x =: ?.500$500
>    ts 'x pick y'
> +--------+-----+
> |0.002219|87296|
> +--------+-----+
>    ts 'x {::"0 _ y'
> +----------+------+
> |0.00743826|391744|
> +----------+------+
>    (x pick y)-:(x {::"0 _ y)
> 1
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to