I have managed to write many useful monad generating adverbs which is all I 
have needed so far, but when I try to generate dyads I get domain errors. Could 
anybody say where I am going wrong in the examples below? I thought that 
explicitly referring to x and y creates a dyad. 

Thanks in advance,
Matthew.
 

This works:
monadgeneratingadverb =: 1 : 0
 u y
)
   *: monadgeneratingadverb 3
9

But this does not:
dyadgeneratingadverb =: 1 : 0
 x u y
)

   3 * dyadgeneratingadverb 4
|domain error
|   3    *dyadgeneratingadverb 4


I am also having the same problem with conjunctions:
dyadgeneratingconjunction =: 2 : 0
 (x v y) + (x u y)
)

   3 + dyadgeneratingconjunction * 4
|domain error
|   3    +dyadgeneratingconjunction*4


Not to mention bivalent generating adverbs:
bivalentgeneratingadverb =: 1 : 0
 u y
 :
 x u y
)


      __________________________________________________________
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to