[REBOL] Re: Why is the lit-word! datatype! not working
From: antonr::lexicon::net at: 22-Oct-2005 12:37
Look at this:
a ; you type a word
;== 1 ; it is evaluated and result returned
'a ; you type a lit-word
;== a ; it is evaluated and result returned (a word)
to-lit-word 'a ; you type a lit-word, it is evaluated to a word
;== 'a ; but then you converted it back to a lit-word
So, in your MY-MAP function below, the 'first lit-word
is converted to a word *before* it is passed to the function.
The solution is to have MY-MAP accept f as a word!, eg:
my-map: func [f [word!] ...