[REBOL] Re: R: Re: reduce second [one two]
From: compkarori:g:mail at: 14-Jan-2009 10:47
I think this is a common error.
While it's in the block, it's just unevaluated words.
do second [ one two ]
On Wed, Jan 14, 2009 at 7:47 PM, Giuseppe Chillemi
>> 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
> 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
>> 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.
Synapse - the use from anywhere EMR.