I think you should have expected it. If you use n, you get a
conjunction by default. That applies whether you assign n or not. m
gets you an adverb.
I avoid the names xyuvmn except to refer to arguments.
Henry Rich
On 10/23/2020 3:28 PM, Joseph Novakovich wrote:
Hello,
It seems odd that the presence of 'n' in a local binding leads 'f1' to
parse as a conjunction unless forced by a control character, tough it
is consistent with explicit definitions from '9 :':
f1 =: {{ n =. y }}
f2 =: {{ z =. y }}
f3 =: {{)*
n =. y }}
f4 =: {{)m
n =. y }}
f5 =: 9 : 'n =. y'
f1 0 1
(f1)0 1
f2 0 1
0 1
f3 0 1
(f3)0 1
f4 0 1
0 1
f5 0 1
(f5)0 1
f1
2 : 'n =. y '
f2
3 : 'z =. y '
f3
2 : 'n =. y '
f4
3 : 'n =. y '
f5
2 : 'n =. y'
Is this the behavior I should have expected?
PS. I think DD is a welcome and ergonomic addition to J!
----------------------------------------------------------------------
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