change  :=  in  =:

   xx =: 3 : 'y 2 $ ( 52 ? 52 )'
   xx 5
|syntax error: xx
|       y 2$(52?52)

then

   xx =: 3 : '(y, 2) $ ( 52 ? 52 )'

   xx 5
30 19
10 43
 6 13
29 27
23  7


R.E. Boss


> -----Oorspronkelijk bericht-----
> Van: [email protected] [mailto:programming-
> [email protected]] Namens Elmer Fittery
> Verzonden: maandag 1 maart 2010 11:36
> Aan: [email protected]
> Onderwerp: [Jprogramming] tacit confusion
> 
> 
>     5 2 $ (52 ? 52)
> 37 17
> 29 26
> 18 41
> 38 33
> 31 28
> 
> xx := 3 : 'y 2 $ ( 52 ? 52 )'
>    xx 5
> |domain error: xx
> |       xx 5
> 
> how do I get the 'y' value?
> how would I get the 'x' value?
> 
> thanks
> 
> 
> 
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to