Hi Peter,
PWW> I'm a bit confused about the behaviour of copy/part as it appears
PWW> inconsistent:
PWW> >> str: "123456789"
PWW> == "123456789"
PWW> >> copy/part str find str "9"
PWW> == "12345678"
PWW> >> copy/part str index? find str "9"
PWW> == "123456789"
It may not be as clear as it could be from the help string, but it
makes sense:
/part -- Limits to a given length or position.
range -- (Type: number series port pair)
So, the distinction is that an integer (when you use INDEX?) specifies
a length, while giving a series (the result of FIND STR "9") specifies
a position (think of it as "up to" the position).
-- Gregg
--
To unsubscribe from the list, just send an email to rebol-request
at rebol.com with unsubscribe as the subject.