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

Reply via email to