Raze assembles on the leading axis. So you could use
   |:;|:L:0 bv

Or
   > ,.&.>/ bv

or your expression, of course.

Thanks,

-- 
Raul

On Sun, Dec 8, 2019 at 7:03 PM Jimmy Gauvin <[email protected]> wrote:

> Same question but with arrays :
>    bv
> ┌─────┬─────────┬─────┐
> │0 0 0│1 1 1 1 1│ 0  0│
> │1 1 1│0 0 0 0 0│_1 _1│
> └─────┴─────────┴─────┘
> Too much filling with raze ( ; ) :
>    ;bv
>  0  0 0 0 0
>  1  1 1 0 0
>  1  1 1 1 1
>  0  0 0 0 0
>  0  0 0 0 0
> _1 _1 0 0 0
> Razing after inserting a bit of ravel is the best I found :
>    ; ,"1&.>/bv
> 0 0 0 1 1 1 1 1  0  0
> 1 1 1 0 0 0 0 0 _1 _1
>
> On Sun, Dec 8, 2019 at 6:17 PM Henry Rich <[email protected]> wrote:
>
> > NuVoc
> > Henry Rich
> >
> > On 12/8/2019 5:03 PM, Skip Cave wrote:
> > > Doh!!
> > >
> > > Thanks, Henery. I knew there was a simple answer. Where is this
> behavior
> > > discussed in the J doc?
> > >
> > > Skip
> > >
> > > On Sun, Dec 8, 2019 at 2:25 PM Henry Rich <[email protected]>
> wrote:
> > >
> > >> ;
> > >> Henry Rich
> > >>
> > >> On 12/8/2019 3:22 PM, Skip Cave wrote:
> > >>> Here's a contrived example:
> > >>>
> > >>> ]a=.1 2 3;4 5 6 7;8 9 10 11 12 13 14
> > >>>
> > >>> ┌─────┬───────┬──────────────────┐
> > >>> │1 2 3│4 5 6 7│8 9 10 11 12 13 14│
> > >>> └─────┴───────┴──────────────────┘
> > >>>
> > >>> I want to unbox, but leave the same order:
> > >>>
> > >>>> a
> > >>> 1 2 3 0 0 0 0
> > >>> 4 5 6 7 0 0 0
> > >>> 8 9 10 11 12 13 14
> > >>>
> > >>> No, I want one dimension:
> > >>>
> > >>> ,>a
> > >>> 1 2 3 0 0 0 0 4 5 6 7 0 0 0 8 9 10 11 12 13 14
> > >>>
> > >>> No, I want NO FILLS!
> > >>>
> > >>> unknown_verb a
> > >>>
> > >>> 1 2 3 4 5 6 7 8 9 10 11 12 13 14
> > >>>
> > >>> What is the unknown verb?
> > >>>
> > >>> Skip Cave
> > >>> Cave Consulting LLC
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to