; ((('A:';'B:') $~ #) ,&.> ]) <;.2 t

On Mon, Nov 3, 2014 at 3:50 AM, June Kim (김창준) <[email protected]> wrote:

> Hello
>
>
> I am looking for a shorter and more elegant way to do the following given a
> string t:
>
>    t=. 0 :0
>
> abc
>
> defg
>
> hijkl
>
> erws
>
> opqow
>
>
> sdfsdf
>
> dofi
>
> )
>
>    ,&:>/ ,(,.~ ('A:';'B:') $~ #) ,.<;. 2 t
>
> A:abc
>
> B:defg
>
> A:hijkl
>
> B:erws
>
> A:opqow
>
> B:
>
> A:sdfsdf
>
> B:dofi
> ----------------------------------------------------------------------
> 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