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

[REBOL] Re: YYYYMMDD date format

From: joel:neely:fedex at: 14-Nov-2000 10:45

Hi, Mat, Well, there's a simple way to do what you want as well... (Although person's of good will might differ as to which of several approaches is "logical", given that some might want to avoid the mandatory overhead of joing strings and then immediately throwing part of the result away... ;-) [rebol-bounce--rebol--com] wrote:
> What sort of annoys me is the logical way of approaching this problem > is like this; > > value: rejoin [ "00" value ] > value: make integer! right [ value 3 ] >
Well then, define Right! right: func [s [string!] w [integer!]] [ copy at s (1 - w + length? s) ]
>> valu: right rejoin ["000" 123] 4
== "0123" -jn- -- ; Joel Neely [joel--neely--fedex--com] 901-263-4460 38017/HKA/9677 REBOL [] foreach [order string] sort/skip reduce [ true "!" false head reverse "rekcah" none "REBOL " prin "Just " "another " ] 2 [prin string] print ""