[REBOL] Re: Reduce question
From: carl::cybercraft::co::nz at: 14-Apr-2006 9:31
On Thursday, 13-April-2006 at 13:13:10 Cesar Chavez wrote,
>Hi all, I don't understand this difference
>>> a: 1
>== 1
>>> b: 2
>== 2
>>> f1: [a < b]
>== [a < b]
>>> reduce f1
>== [true]
>
>>> f2: to-block "a < b"
>== [a < b]
>>> reduce f2
>** Script Error: a word has no context
>** Near: a < b
>
>>> = f1 f2
>== true
>
>Can someone help me?
Others can better explain why that doesn't work, but using LOAD on the string will give
you the result you want...
>> a: 1
== 1
>> b: 2
== 2
>> f3: load "a < b"
== [a < b
]
>> reduce f3
== [true]
-- Carl Read.