[REBOL] Re: Change/part
From: andrew:wxc at: 24-Feb-2001 8:31
Ryan wrote:
> Does anyone know the purpose of change returning the part of the series
after the change,...
So you can do neat things like (from Spell.r):
WordEnd: change/part WordStart Correction WordEnd
and then move the 'parse position like:
) :WordEnd
Or, a smaller example:
parse string [
some [
start: ":" copy word some Alpha end: (
end: change/part start form do load word end
) :end
]
]
> ...as opposed to the whole of the changed series?
Actually, it returns all the string, but the position of the string is after
the change.
Andrew Martin
ICQ: 26227169 http://members.nbci.com/AndrewMartin/