On Thu, May 13, 2010 at 1:10 PM, David Ward Lambert
<[email protected]> wrote:
> Seldom are my definitions useful as both monads and dyads(*footnote 0).
> Cap documents(*1) intent as in this brief session with vectors in j:
>
> length=: +/&.:*: : [:
>
> to =: [: : -~
to =: [: : -~
to 3
0
The problem here is that your definition of to is equivalent to
to =: ([: :-)~
You might want to do something like:
monadic=: [: :
dyadic=: : [: NB. for consistency
length=: +/&.:*: dyadic
to=: -~ monadic
('monad' and 'dyad' would be slightly less verbose but they
are already defined.)
FYI,
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm