Hi,
I am learning J and I don't understand something about forks.
According to https://www.jsoftware.com/help/primer/fork.htm :
   (f g h) y    evaluates as    (f y) g (h y)
I define this dyad :
   appliedto =: @.(]@1)
and this monad :
   mult =: 3 : ']`(* & y)'
Here is an example using these functions :
   (mult 10) appliedto (+: 10)
200
Normally it should be equivalent to this fork but it does not work :
   (mult appliedto +:) 10
|domain error
|   (mult     appliedto+:)10
Do you understand why I get this error ?

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

Reply via email to