> 'alpha';'bravo';'charlie'
alpha  
bravo  
charlie

(shape 3 7)

Sent from my iPad


On Sep 6, 2012, at 11:38 AM, Ian Clark <[email protected]> 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
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to