g=: ([: ; ] e #~) a:&~:
----- Original Message ----- From: david alis <[EMAIL PROTECTED]> Date: Sunday, December 2, 2007 3:13 Subject: [Jprogramming] Re: concatenating boxed strings To: Programming forum <[email protected]> > data =: 1e6$text > tacit =: (; @ (#!.(<' ')~ 1 j. =&a:)) > > e=. ((#^:_1)!.(<' ')) > explicit =: 3 : '; p e y #~ p=. y~:a:' > > ts =: 6!:2,7!:2 > > ts'tacit data' > 0.886011 1.2583e8 > > ts'explicit data' > 0.203109 1.36343e7 > > (explicit -: tacit)data > 1 > > Is there a nicer way to express explicit? > > > > Henry Rich HenryHRich at nc.rr.com > Sun Dec 2 04:57:57 HKT 2007 > wrote: > > ; @ (#!.(<' ')~ 1 j. =&a:) text > > the yellow cat is sleeping > > >> Kairit Sirts ... > > > text=.(<'the'),a:,(<'yel'),(<'low'),a:,(<'cat'),a:,(<'is'),a:,> (<'slee'),(<'p > > ing') ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
