Wednesday, January 19, 2005, 12:23:28 PM, Gabriele wrote:
> so you'd need to check PARSE's result and return NONE if it didn't
> match.
and so that this exercise is not left to the reader:
find-nth: func [
"Returns the series at occurrence N of value or none."
series [series!]
value
n [integer!]
/local pos
] [
either parse series [n [to value pos: value] to end] [pos] [none]
]
--
Best regards,
Andreas
--
To unsubscribe from the list, just send an email to rebol-request
at rebol.com with unsubscribe as the subject.