Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: [Nifty Function of the Day] Pad

From: greggirwin:mindspring at: 16-Aug-2003 10:01

GI> pad: func [value width /local op] [ GI> op: either any [number? value money? value date? value] [:head][:tail] GI> head insert/dup op value: form value " " width - length? value GI> ] Or maybe this will work for you: pad: func [value width /local op] [ op: either any-string? value [:tail][:head] head insert/dup op value: form value " " width - length? value ] -- Gregg