> Now, while ". in J seems not to want to return verbs or (and you 
> CAN understand its reluctance), the Dyalog execute primitive is 
> less picky ...

What happens with
   execute each '{alpha+omega}' '+/' '.' '{omega}'

Just curious.



----- Original Message -----
From: Morten Kromberg <[EMAIL PROTECTED]>
Date: Thursday, December 27, 2007 6:59
Subject: RE: [Jchat] J readability
To: 'Chat forum' <[email protected]>

> Sorry, did not explain that very well. Unlike most APL systems, 
> Dyalog allows the result of an expression to be a function/verb. 
> So as J allows you to write:
> 
>       add =: +
> 
> Dyalog allows
> 
>       add←+
> or    add←{a+w}
> 
> Now, while ". in J seems not to want to return verbs or (and you 
> CAN understand its reluctance), the Dyalog execute primitive is 
> less picky ("Explicit" in J seems a rather odd beast too, even 
> the term "special syntax" doesn't quite seem sufficient to 
> describe the workings of 3:0 :-)). So you can write:
> 
>       add←exec'{a+w}'
> 
> ... after which:
> 
>       add/1 2 3
> 6
> 
> ... and if you load up the dfns workspace which contains a "user-
> defined" rank operator (http://www.dyalog.dk/dfnsdws/n_rank.htm):
> 
>       1 2  (add rank 0 1) 2 2 
> {reshape} 10 20 30 40
> 11 21
> 32 42
> 
> Morten
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to