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

[REBOL] Re: loop example..

From: joel:neely:fedex at: 4-Oct-2001 1:29

Hey, folks, Cal Dixon wrote:
> > Any one want to offer a more esoteric solution? :-) > > how about this? > > mark: 4 > scale: [ 10 "A" 9 "A" 8 "B" 7 "B" 6 "C" 5 "C" 4 "D" 3 "D" 2 "F" 1 "F" 0 > "F" ] > select scale to-integer mark >
As long as we can assume that the breaks are on integer boundaries, this could simplify to pick "FFFDDCCBBAA" 1 + to-integer mark but, as usual, the more we optimize, the more we lose flexibility. -jn- -- Why are there interstate highways in Hawaii? -- Lora Canney joel#dot#neely#at#fedex#FIX#PUNCTUATION#dot#com