Thanks for all your help.  Here are some simplifications I finally
understand:

 

   f =: j./&i:/ 

   g =: (i:@[ j./ i:@])/   

   h=: 13 :'(([:i:[)j./[:i:])/y'

   (f-:g)1 2

1

   (f-:h) 1 2 

1

   5!:4 <'f'

            -- / --- j.
-- / --- & -+- i:      

   5!:4 <'g'

              -- i:
        -- @ -+- [ 
        │          
        +- / --- j.
-- / ---+          
        │     -- i:
        L- @ -+- ] 

   5!:4 <'h'

              -- [:
        ------+- i:
        │     L- [ 
        │          
-- / ---+- / --- j.
        │          
        │     -- [:
        L-----+- i:
              L- ] 

   f

j./&i:/

   g

(i:@[ j./ i:@])/

   h

(([: i: [) j./ [: i: ])/

   

   

Function  f  has only  &    NB. Raul

Function  g  has only  @    NB. Kip

Function  h  has neither    NB. Linda

 

Linda

 

-----Originail Message---
From: [email protected]
[mailto:[email protected]] On Behalf Of Ric Sherlock
Sent: Saturday, February 09, 2013 4:29 AM
To: Programming JForum
Subject: Re: [Jprogramming] A tale of two nouns

 

No. It says that   '('   is a noun.

 

Your experiments show that you can't assign "nothing" (or purely

punctuation) to a name. Just as:

   o=:

|syntax error

|   o=:

 

 

 

On Sat, Feb 9, 2013 at 10:24 PM, Linda Alvord <
<mailto:[email protected]> [email protected]>wrote:

 

> Thanks your sources are helpful.

> 

> Here's another weird one.  Grammar says that parentheses are punctuation.

> 

> 

>    o=:(+)

>    o

> +

>    nc <'o'

> 3

>    o=:()

> |syntax error

> |   o=:()

>    o=:(

> |syntax error

> |   o=:(

> 

>    o=:'('

>    o

> (

>    nc <'o'

> 0

> 

> Does this say  (  is a noun?

> 

> Linda

> 

> -----Original Message-----

> From:  <mailto:[email protected]>
[email protected]

> [ <mailto:[email protected]>
mailto:[email protected]] On Behalf Of km

> Sent: Saturday, February 09, 2013 4:07 AM

> To:  <mailto:[email protected]> [email protected]

> Subject: Re: [Jprogramming] A tale of two nouns

> 

> Linda,

> 

>     f =: '=:'  NB. f is a string of two characters

>     $f

>  2

> 

> Your  g  appears to be a string of three characters.

> 

> About your sentence attempting to define  i  check for a space between  

> = and  :

> 

> Finally, about  =:  please see Appendix E. Parts of Speech:

> 

>  <http://www.jsoftware.com/docs/help701/dictionary/partsofspeech.htm>
http://www.jsoftware.com/docs/help701/dictionary/partsofspeech.htm

> 

> There you will see  =:  is not a "verb" in the J sense of that term.  

> Also see II. Grammar

> 

>  <http://www.jsoftware.com/docs/help701/dictionary/dict2.htm>
http://www.jsoftware.com/docs/help701/dictionary/dict2.htm

> 

> where  =:  is identified as a sixth "part of speech" Copula.

> 

> Kip

> 

> Sent from my iPad

> 

> 

> On Feb 9, 2013, at 2:24 AM, "Linda Alvord" <
<mailto:[email protected]> [email protected]>

> 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>
http://www.jsoftware.com/forums.htm

> ----------------------------------------------------------------------

> For information about J forums see  <http://www.jsoftware.com/forums.htm>
http://www.jsoftware.com/forums.htm

> 

> ----------------------------------------------------------------------

> For information about J forums see  <http://www.jsoftware.com/forums.htm>
http://www.jsoftware.com/forums.htm

> 

----------------------------------------------------------------------

For information about J forums see  <http://www.jsoftware.com/forums.htm>
http://www.jsoftware.com/forums.htm

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

Reply via email to