NB. this does not work:

   3((], [) $ (52?52))2
|syntax error
|       3((],[)$(52?52))2

NB. naming the constant
   a=.(52?52)

NB. doesn't help:
   3((],[)$a)2
|syntax error
|       3((],[)$a)2

NB. but switch the function and the constant:

   3(a$~(],[))2
46 10 32
 2 12  3

NB. make another switch:

   3(a$~([,~]))2
46 10 32
 2 12  3

NB. and then remove the square brackets:

   3(a$~,~)2
46 10 32
 2 12  3

-Bo

--- Den man 1/3/10 skrev Elmer Fittery <[email protected]>:

Fra: Elmer Fittery <[email protected]>
Emne: Re: [Jprogramming] tacit confusion
Til: [email protected]
Dato: mandag 1. marts 2010 15.27


dealx =: (4 : '(y, x) $ ( 52 ? 52 )')

Thanks a lot.

I found reference to dealx at jsoftware.com, but it seemed
to be removed from the language sometime in 2000.



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


__________________________________________________
Bruger du Yahoo!?
Er du træt af spam?  Yahoo!Mail har den bedste spambeskyttelse, der findes 
http://dk.mail.yahoo.com 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to