Like this perhaps?
count: ["one" "two" "three" "four"]
data-struct: [
this: 1
words: [
"some-word" [
title "some-title"
]
]
"one" [......]
"two" [ "i picked block two" ]
"three" [.......]
]
selector: second count
res: first data-struct/:selector ; Note the get-word notation
....
== "i picked block two"
note that you could do this as well:
>> res: first select data-struct second count
== "i picked block two"
Brett.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 29, 2000 10:43 PM
Subject: [REBOL] Refinements
> All,
> Is it possible to programatically use refinements? I would like to do the
> following
>
> count: ["one" "two" "three" "four" .......]
> data-struct: [
> this: 1
> words: [
> "some-word' [
> title "some-title"
> ]
> ]
> one [........]
> two [......]
> three [.......]
> ]
> res: first data-struct/[second count]
>
> Thanks in anticipation
> colinb
> Colin Brizell
> IT System Development Officer
> University College Worcester
> Tel: 01905 855389
> Fax: 01905 855330
> http://www.worc.ac.uk
>