Re: [Jprogramming] How to enclose two columns

2017-08-27 Thread Ric Sherlock
n > Behalf Of Ben Gorte - CITG > Sent: Friday, August 25, 2017 5:01 AM > To: programm...@jsoftware.com > Subject: Re: [Jprogramming] How to enclose two columns > > if short is a virtue: > >;/|:,: B > +-+-+ > |0|1| > |2|3| > |4|5| > |6|7| > +-+-+ > > Ben &g

Re: [Jprogramming] How to enclose two columns

2017-08-26 Thread Linda Alvord
nal Message- From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Ben Gorte - CITG Sent: Friday, August 25, 2017 5:01 AM To: programm...@jsoftware.com Subject: Re: [Jprogramming] How to enclose two columns if short is a virtue: ;/|:,: B +-+-+ |0|1| |2|3| |

Re: [Jprogramming] How to enclose two columns

2017-08-25 Thread Ben Gorte - CITG
: Re: [Jprogramming] How to enclose two columns <"1 |: B +---+---+ |0 2 4 6|1 3 5 7| +---+---+ if this is not what you wanted, then try <@,."1 |: B +-+-+ |0|1| |2|3| |4|5| |6|7| +-+-+ -- regards, GPG ke

Re: [Jprogramming] How to enclose two columns

2017-08-25 Thread Louis de Forcrand
In general, if you want to apply u along a group of n of axes: axis=: 2 : 0 u"(#n)@(n&|:) ) This is I believe very close to the axis operator in APL if you are familiar with it: ]m=: i.2 3 4 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 < axis 0 m +++---

Re: [Jprogramming] How to enclose two columns

2017-08-24 Thread bill lam
<"1 |: B +---+---+ |0 2 4 6|1 3 5 7| +---+---+ if this is not what you wanted, then try <@,."1 |: B +-+-+ |0|1| |2|3| |4|5| |6|7| +-+-+ -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --rec

Re: [Jprogramming] How to enclose two columns

2017-08-24 Thread Vijay Lulla
Or: ,.&.><"1 |: B On Thu, Aug 24, 2017 at 2:59 PM, chris burke wrote: > Try: > > B=:i.4 2 > > ;/|:B > > <"1|:B > > ('';1)<;.1 B > > On Thu, Aug 24, 2017 at 11:38 AM, Linda Alvord > wrote: > > > ]B=:i.4 2 > > > > 0 1 > > > > 2 3 > > > > 4 5 > > > > 6 7 > > > > > ┌───┐ > > > > │0 1│ > > > > │2

Re: [Jprogramming] How to enclose two columns

2017-08-24 Thread chris burke
Try: B=:i.4 2 ;/|:B <"1|:B ('';1)<;.1 B On Thu, Aug 24, 2017 at 11:38 AM, Linda Alvord wrote: > ]B=:i.4 2 > > 0 1 > > 2 3 > > 4 5 > > 6 7 > > ┌───┐ > > │0 1│ > > │2 3│ > > │4 5│ > > │6 7│ > > └───┘ > > <"0 B > > ┌─┬─┐ > > │0│1│ > > ├─┼─┤ > > │2│3│ > > ├─┼─┤ > > │4│5│ > > ├─┼─┤ > > │6│7│ > >

[Jprogramming] How to enclose two columns

2017-08-24 Thread Linda Alvord
]B=:i.4 2 0 1 2 3 4 5 6 7 http://www.jsoftware.com/forums.htm