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

[REBOL] Re: Not-too-smart Table Parser (was: how to handle tables?)

From: joel:neely:fedex at: 24-Sep-2001 4:28

Well, GRUMBLE! Somehow I managed to send a glitched version instead of the corrected one... <sigh /> Sorry for the confusion and time-wasting. The correction involves a single line in the HINT function, inserted below at the appropriate point. Joel Neely wrote:
> hint: function [ > scores [block!] > ][ > avg > ][ > avg: 0 > foreach score scores [avg: avg + score] > avg: avg / length? line-scores
;; replace preceding line with correction below avg: avg / length? scores
> foreach score scores [ > prin either score < avg ["-"]["+"] > ] > print "" > ] >
Again, sorry for the dumbness! -jn- -- Please don't ask when version 2 will be released; we generally don't know the answer to questions of that sort. -- Richard Stallman joel+dot+neely+at+fedex+dot+FIX+PUNCTUATION+com