[Jprogramming] Explicit adverb producing dyad?
Gilles Kirouac
gkirouac at riq.qc.ca
Sat Feb 18 05:20:16 HKT 2012
Ed
In YOUR message as I received it, there are non-displaying characters:
a=.1 : 0
[here]:
[here]x u y
[here])
|spelling error
| x u y
| ^
| a=. 1 :0
Illegal characters cause spelling errors.
~ Gilles
---------- Original Message -----------
From: Edward Mokurai Cherlin <mokurai at sugarlabs.org>
To: Programming forum <programming at jsoftware.com>
Sent: Tue, 14 Feb 2012 14:12:59 -0500
Subject: [Jprogramming] Explicit adverb producing dyad?
> I am unable to determine how to write an explicit J adverb that
> produces a dyadic verb. There is an example of an explicit
> conjunction at
>
> http://www.rogerstokes.free-online.co.uk/13.htm
>
> H =: 2 : 0
> :
> (u x) + (v y)
> )
> 2 (*: H %:) 16
> 8
>
> and other such constructions work with no problems.
>
> However,
>
> a=.1 : 0
> :
> x u y
> )
> |spelling error
> | x u y
> | ^
> | a=. 1 :0
>
> a=.1 : 'x u y'
> a
> 1 : 'x u y'
> 2 +a 3
> |domain error
> | 2 +a 3
>
> Of course, I could write
>
> a=.1 : '[ u ]'
>
> but that would require reordering topics in the J version of
> Iverson's Algebra: An Algorithmic Treatment that I am editing, and
> would still leave the mystery.
> --
> Edward Mokurai
> (默雷/धर्ममेघशब्दगर्ज/دھرممیگھشبدگر ج) Cherlin Silent Thunder is my name, and
Children are my nation. The Cosmos is my dwelling place, the Truth my
destination. http://wiki.sugarlabs.org/go/Replacing_Textbooks
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
------- End of Original Message -------
More information about the Programming
mailing list