[REBOL] Re: Don't understand "try" and "disarm"
From: tim-johnsons:web at: 15-Mar-2006 12:09
* Jeff Massung <massung-gmail.com> [060315 11:20]:
> Wow! I didn't know REBOL supported associated lists like that. That's very
> cool. :-)
>
> > == [a 1 b "two" c 3.3]
> > >> test/a ;; if 'placeholder' is word, can be path
> > == 1
Rebol documentation is constantly being upgraded. I can't recall if
this is even included in the most current docs that I have.
It's easy enough to convert the block above to a context also:
as in ;; untested code!!!!
o: copy []
foreach [k v] test[append o reduce[to-set-word k get/any v]]
make object! compose o
NOTE: this functionality is bundled in a function that has
dependencies, so actual code might muddy the waters.
tim
--
Tim Johnson <tim-johnsons-web.com>
http://www.alaska-internet-solutions.com