As soon as I saw ;:inv it rang a bell... And, hey presto! ... http://www.jsoftware.com/pipermail/programming/2012-January/026347.html
PATIENT: I keep on forgetting what I've just said! DOCTOR: How long's this been going on? PATIENT: How long's what been going on? Sorry, folx. :-\ On Thu, Sep 6, 2012 at 5:44 PM, Aai <[email protected]> wrote: > > ;: inv z > alpha bravo charlie > > > On 06-09-12 18:38, Ian Clark wrote: >> >> Kindergarten class... >> >> I have a list of boxed literals... >> z=: 'alpha' ; 'bravo' ; 'charlie' >> >> I want to flatten it to a literal, but with spaces between. (Variant: >> --with LF's). >> >> Raze (;) does indeed flatten the list... >> ;z >> alphabravocharlie >> >> There's got to be a really neat extended Raze which includes >> separators. But the fastest I've been able to come up with is: >> >> b2o=: }.@((<' ') ;@,. ]) >> b2o z >> alpha bravo charlie >> >> Any advances? >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm > > > -- > Met vriendelijke groet, > @@i = Arie Groeneveld > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
