[Jprogramming] A tale of two nouns
Ric Sherlock
tikkanz at gmail.com
Sat Feb 9 09:25:09 UTC 2013
I can't reproduce your results above in a clean J7 session.
f=:i
nc <'f'
3
g=:j
nc <'g'
3
h =: blah
nc <'h'
3
NB. The interpreter appears to assume that an unassigned name is a verb
that has not yet been assigned.
blah=: *:
h 3 4 5
9 16 25
On Sat, Feb 9, 2013 at 10:05 PM, Linda Alvord <lindaalvord at verizon.net>wrote:
> Most verbs don't need parentheses. Why isn't =: a verb?
>
> Also along these lines, explain this:
>
> f=:i
> nc <'f'
> 3
> g=:j
> nc <'g'
> 1
>
> Does that explain my question?
>
> Linda
>
> -----Original Message-----
> From: programming-bounces at forums.jsoftware.com
> [mailto:programming-bounces at forums.jsoftware.com] On Behalf Of Ric
> Sherlock
> Sent: Saturday, February 09, 2013 3:57 AM
> To: Programming JForum
> Subject: Re: [Jprogramming] A tale of two nouns
>
> Linda, I'm not really sure what point you are trying to make. f and g are
> both literal lists. h is a verb and nothing ever gets assigned to i .
>
> Are you thinking the primitive ( =: ) is a combination of the verb ( = )
> and
> the conjunction ( : ) ?
>
> On Feb 9, 2013 9:24 PM, "Linda Alvord" <lindaalvord at verizon.net> wrote:
> >
> > f =: '=:'
> >
> > nc <'f'
> >
> > 0
> >
> > g =: '= :'
> >
> > nc <'g'
> >
> > 0
> >
> > h =: *:
> >
> > h 7 11
> >
> > 49 121
> >
> > i = : *:
> >
> > i = :*:
> >
> > i 7 11
> >
> >
> >
> > i 7 11
> >
> > |value error: i
> > | i 7 11
> >
> >
> >
> > f and g are both nouns, but they aren't the same noun.
> >
> >
> >
> > Is f really a noun? If "is" is a verb, isn't "=:" a verb?
> >
> >
> >
> > Linda
> >
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
More information about the Programming
mailing list