On Sun, Aug 2, 2009 at 1:40 PM, Bo Jacoby<[email protected]> wrote:
> I am having a hard time trying to understand what is going on here.
f1 =: 2"0
f2 =: 2&p.
0 f1 9
2
0 f2 9
9
This is because of the behavior of dyads constructed
using & and a noun and a verb. See also:
http://www.jsoftware.com/help/dictionary/d630n.htm
And if we do not limit the domain of our left argument,
we run into problems:
'a' f2 9
|domain error: f2
Or , if we limit ourselves to positive integer left
arguments:
(1+i.2 3 5) (f2 -: f1/"_) i.7 11
1
But the rank of the monad can also matter:
<@f1 i.3
+-+-+-+
|2|2|2|
+-+-+-+
<@f2 i.3
+-----+
|2 2 2|
+-----+
FYI,
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm