[Jprogramming] Faster deb
Ian Clark
earthspotty at gmail.com
Thu Jan 5 10:58:41 HKT 2012
I like that way of temporarily padding the ends with extra spaces to
mop up any already there.
On Thu, Jan 5, 2012 at 2:12 AM, Roger Hui <rogerhui.canada at gmail.com> wrote:
> dbx=: #~ -.@(' '&E.)
> db=: dbx&.(,&' ')&.(' '&,)
>
> x=: 'the better angels of our nature'
>
> '>',(db x),'<'
>>the better angels of our nature<
> '>',(db ' ',x),'<'
>>the better angels of our nature<
> '>',(db x,' '),'<'
>>the better angels of our nature<
> '>',(db ' ',x,' '),'<'
>>the better angels of our nature<
>
> '>',(db ' '),'<'
>><
> '>',(db ''),'<'
>><
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list