To model APL enlist it would need to be:
;<@,S:0
;<@,S:0 (<39 2 3);(i.4 3);<3;<< 2
+--------+-------+-------+
|+------+|0 1 2|+-+---+|
||39 2 3||3 4 5||3|+-+||
|+------+|6 7 8|| ||2|||
| |9 10 11|| |+-+||
| | |+-+---+|
+--------+-------+-------+
;<@,S:0 (<39 2 3);(i.4 3);<3;<< 2
39 2 3 0 1 2 3 4 5 6 7 8 9 10 11 3 2
;L:1^:_ (<39 2 3);(i.4 3);<3;<< 2
39 2 3 0 1 2 3 4 5 6 7 8 9 10 11 3 2
;<S:0 (<39 2 3);(i.4 3);<3;<< 2
39 2 3
0 1 2
3 4 5
6 7 8
9 10 11
3 3 3
2 2 2
> From: Oleg Kobchenko
>
> <S:0 ] 1;2;('a';'b';(1 2 3);11 12);3;4;5
> +-+-+-+-+-----+-----+-+-+-+
> |1|2|a|b|1 2 3|11 12|3|4|5|
> +-+-+-+-+-----+-----+-+-+-+
>
> ;<S:0 ] 1;2;(55;44;(1 2 3);11 12);3;4;5
> 1 2 55 44 1 2 3 11 12 3 4 5
>
> See Dictionary for S: .
>
>
>
>
> ----- Original Message ----
> > From: "Sherlock, Ric" <[email protected]>
> > To: Programming forum <[email protected]>
> > Sent: Saturday, September 19, 2009 3:19:22 AM
> > Subject: Re: [Jprogramming] Enlist function? (J newb)
> >
> > > From: Raul Miller
> > >
> > > On Sat, Sep 19, 2009 at 2:39 AM, a b wrote:
> > > > Apparently J has no "enlist" (APL) function to remove all nesting
> and
> > > > make a structure completely flat?
> > >
> > > ;^:_
> > >
> > > Of course, this requires suitable arguments.
> >
> > ;L:1^:_
> >
> > Maybe better?
> >
> > ---------------------------------------------------------------------
> -
> > 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