Re: Padding numbers with space
ofcourse!!! ... thanks Alex. Regards, Kashyap On Mon, Jun 10, 2019 at 7:01 AM Alexander Burger wrote: > Hi Kashyap, > > > I noticed that "pad" pads number with 0 prefix. What would be a good way > to > > use space instead? > > There is already a function: 'align' :) > >: (pad 5 3) >-> "3" >: (align 5 3) >-> "3" > > ☺/ A!ex > > -- > UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe >
Re: Padding numbers with space
Hi Kashyap, > I noticed that "pad" pads number with 0 prefix. What would be a good way to > use space instead? There is already a function: 'align' :) : (pad 5 3) -> "3" : (align 5 3) -> "3" ☺/ A!ex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Padding numbers with space
Hi, I noticed that "pad" pads number with 0 prefix. What would be a good way to use space instead? I was about to copy the definition of pad (which is so nice to look at) from lib/misc and edit it but was wondering if a "temporary patching" (if that is a thing) would be better? Regards, Kashyap