[REBOL] Re: Is the a better way
From: ryanc:iesco-dms at: 20-Feb-2001 11:32
I just realized this is more like what your trying to do:
>> b
== [["purple" "green" "yellow"]]
>> x: 1
== 1
>> y: 2
== 2
>> change b/:x/:y "orange"
== ""
>> b
== [["purple" "orange" "yellow"]]
>>
--Ryan
Ryan Cole wrote:
> Howabout:
>
> >> runinfo
> == [["cat" "ok" "rebolcmd -s lookatcwsm19.r"]]
> >> change runinfo/1 "bat"
> == ["ok" "rebolcmd -s lookatcwsm19.r"]
> >> runinfo
> == [["bat" "ok" "rebolcmd -s lookatcwsm19.r"]]
> >>
>
> Larry Morgenweck wrote:
>
> > For:
> >
> > >> i
> > == 1
> > >> runinfo
> > == [["cat" "ok" "rebolcmd -s lookatcwsm19.r"]]
> > >> do rejoin [{runinfo/} i {/} i {: "dog"}]
> > == ["dog" "ok" "rebolcmd -s lookatcwsm19.r"]
> >
> > to modify a element within a nested block or any block
> >
> > - Larry
> > --
> > To unsubscribe from this list, please send an email to
> > [rebol-request--rebol--com] with "unsubscribe" in the
> > subject, without the quotes.
>
> --
> To unsubscribe from this list, please send an email to
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
--
Ryan Cole
Programmer Analyst
www.iesco-dms.com
707-468-5400
I am enough of an artist to draw freely upon my imagination.
Imagination is more important than knowledge. Knowledge is
limited. Imagination encircles the world.
-Einstein