[REBOL] Re: GPS: minimizing sum of squares algorithm
From: jan:skibinski:sympatico:ca at: 11-Nov-2002 11:33
Hi Gabriele,
> I don't know why REVERSE returns the tail of the block. You can
> use HEAD REVERSE in expressions, or patch it like this:
>
> use [_reverse] [
> _reverse: :reverse
> reverse: func [
> "Reverses a series."
> value [series! tuple! pair!]
> /part "Limits to a given length or position."
> range [integer! series!]
> ] [
> head either part [_reverse/part value range] [_reverse value]
> ]
> ]
Thanks, that's interesting application of 'use! But I'd rather stay
away
from patching and just get used to the standard behaviour of 'reverse.
Jan