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

[REBOL] Re: R: Re: reduce second [one two]

From: compkarori:gm:ail at: 14-Jan-2009 10:47

I think this is a common error. While it's in the block, it's just unevaluated words. but do second [ one two ] should work. On Wed, Jan 14, 2009 at 7:47 PM, Giuseppe Chillemi <gchillemi-aliceposta.it> wrote:
> >> SECOND returns a word, and REDUCE does not reduce a word to >> its associated value. >> (REDUCE does reduce words inside a block that it is passed, >> so this might seem >> strange.) > > In fact I have reported it as a bug making a mistake because I presumed that > > two: 2 > Probe REDUCE second [one two] > > was the same of > > two: 2 > probe REDUCE TWO > > Instead "second [one two]" returns 'TWO rather than TWO which is a thing you > don't notice in the consolle as the ouput is TWO in both situations. > >> To reduce a word to its value, use GET. >> >> probe get 'two >> >> or >> >> probe get second [one two] > > The latter is the answer I have been searching for. Thanks in advance > > Giuseppe Chillemi > > -- > To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject. >
-- Graham Chiu http://www.synapsedirect.com Synapse - the use from anywhere EMR.