Raul, I'm still trying to find how to get "html" or "rich text" like I used
in an old outlook. This is my rather ugly new version.
rrN=:'x+y x-y x<.y x>.y'
M=:'+ - <. >.'
dyads=: 13 :' ,. <"1 ''x'',"1(>;:y),"1 ''y'''
(dyads M)
┌────┐
│x+ y│
├────┤
│x- y│
├────┤
│x<.y│
├────┤
│x>.y│
└────┘
s=: [: ,. [: <;._1 ' ' , ]
s N
┌───┬───┬────┬────┐
│x+y│x-y│x<.y│x>.y│
└───┴───┴────┴────┘
s=: [: ,. [: <;._1 ' ' , ]
(s N),.dyads M
┌────┬────┐
│x+y │x+ y│
├────┼────┤
│x-y │x- y│
├────┼────┤
│x<.y│x<.y│
├────┼────┤
│x>.y│x>.y│
└────┴────┘
5!:4 <'s'
5!:4 <'s'
┌─ [:
├─ ,.
│ ┌─ [:
──┤ │ ┌─ <
│ ├─ ;. ─┴─ _1
└────┤
│ ┌─ ' '
└──────┼─ ,
└─ ]
I still need to write your version explicitly as I don't quite get ;. Yet.
However in later greades it will be easier to add new verbs to M than N so
maybe you have ideas to improve dyads.
Thanks Linda
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Raul Miller
Sent: Sunday, November 2, 2014 7:19 PM
To: Programming forum
Subject: Re: [Jprogramming] This surprised me.
I guess your & allergy hits you for anything you inspect?
Here's a variation on cut which will do the job:
simplercut=: [: <;._1 ' ' , ]
N=:'x+y x-y x<.y x>.y'
simplercut N
+---+---+----+----+
|x+y|x-y|x<.y|x>.y|
+---+---+----+----+
I hope this helps.
--
Raul
On Sun, Nov 2, 2014 at 1:08 PM, Linda Alvord <[email protected]>
wrote:
> Thanks Raul,
>
> Cut works but has too many & and @'s and all sorts of other stuff.
>
> I got what I wanted with
>
> M=:'+ - <. >.'
> ,.<"1 'x ',"1 (>;:M),"1' y'
> -------┐
> │x + y│
> +------+
> │x - y│
> +------+
> │x <. y│
> +------+
> │x >. y│
> L-------
>
> I can't find where to get "html" or "rich text" in the current Outlook.
> Sorry.
>
> Linda
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Linda
> Alvord
> Sent: Sunday, November 2, 2014 9:07 AM
> To: [email protected]
> Subject: [Jprogramming] This surprised me.
>
> M=:'+ - <. >.'
>
> ;:M
>
> --T-T--T--┐
> │+│-│<.│>.│
> L-+-+--+---
>
> N=:'x+y x-y x<.y x>.y'
>
> ;:N
>
>
>
> I wanted 4 boxes for N
>
> 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
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm