I was bothtered that what I thought would work didn't, but it does.

 

    ;@(,&' '&.>"1)|.;:'see happy cat'

cat happy see 

   f=: ;@(,&' '&.>"1)

   f|.;:'see happy cat'

cat happy see 

    

I should have just used  f  not  f a.

 

I wouldn't have been happy anyway as  I was replacing  &. With both  &. And
&

 

I followed the trail to get an inverse or obverse and failed to realize I
was in the

Power section and never noticed or remembered you good solution.  Thanks.

 

 

   ;:^:_1 |.;:'see happy cat'

cat happy see

This is very teachable!

 

   a=:'see happy cat'

   ;:a

┌───┬─────┬───┐
│see│happy│cat│
└───┴─────┴───┘

   |.;:a

┌───┬─────┬───┐
│cat│happy│see│
└───┴─────┴───┘

   ;:^:_1 |.;:a

cat happy see

   

   NB. u&.v y ↔ vi u v y

   (|.&.;:a)-:;:^:_1 |.;:a

1

 

Thanks again.  Linda  

 

 

 

 

  

-----Original Message-----
From: [email protected] [mailto:programming-
[email protected]] On Behalf Of Mike Day
Sent: Sunday, January 06, 2013 7:28 AM
To: [email protected]
Subject: Re: [Jprogramming] Not a happy cat

 

You quote (below)

 

   NB.   u&.v y ↔ vi u v y

 

   NB.   ;:  has obverse from vocab ;@(,&' '&.>"1)

 

which is what it does, though I don't see why you want to use it in
preference to ;:^:_1

 

;@(,&' '&.>"1)|.;:'see happy cat' NB. Apply vocab obverse of ;: to reversed
boxed words cat happy see

 

;:^:_1 |.;:'see happy cat' NB. longwinded form of |.&.;:

cat happy see

 

Mike

(sorry for odd formatting)

 

On 06/01/2013 10:53 AM, Linda Alvord wrote:

 

     a=:'see happy cat'

 

   ;:a

 

┌───┬─────┬───┐

│see│happy│cat│

└───┴─────┴───┘

 

   >;:a

 

see

happy

cat  

 

   ,>;:a

 

see  happycat  

 

 

Not good!

 

 

   |.&.;:a

 

cat happy see

 

 

Lovely but when I try to remove  &. I get this:

 

 

   NB.   u&.v y ↔ vi u v y

 

   NB.   ;:  has obverse from vocab ;@(,&' '&.>"1)

 

   f=:;@(,&' '&.>"1)

 

   f a

 

s e e   h a p p y   c a t 

 

   (f a) |. ;: a

 

|length error

|   (f a)    |.;:a

 

  

 

Just a little early morning puzzle.

 

 

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

Reply via email to