If the adverb does not refer to u, x is assumed to mean u (for
compatibility with early versions).
It is rare to have an adverb that does not depend on u . Here you could
have written
f =: adverb : '['
Henry Rich
On 8/24/2019 10:07 AM, Arnab Chakraborty wrote:
Hi,
I cannot understand the behavior of the following code that I have written:
f =: adverb define
y
:
x
)
I expected this adverb to convert any verb to one that as a monad is same
as identity function, and as a dyad is just [
It produces syntax error when called like
(sin f) 1
or
2 (+ f) 3
But the following adverb works fine:
f =: adverb define
(u y)
:
x
)
I cannot understand this behavior.
Any idea?
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
---
This email has been checked for viruses by AVG.
https://www.avg.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm