;('A:';'B:'),L:0 "1 [_2[\<;.2 t
A:abc
B:defg
A:hijkl
B:erws
A:opqow
B:
A:sdfsdf
B:dofiR.E. Boss (Add your info to http://www.jsoftware.com/jwiki/Community/Demographics ) > -----Original Message----- > From: [email protected] [mailto:programming- > [email protected]] On Behalf Of Roger Hui > Sent: maandag 3 november 2014 13:01 > To: Programming forum > Subject: Re: [Jprogramming] shorter way to prefix lines altenatively? > > ; ((('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 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
