[REBOL] Re: Why does 'reverse returns the tail of the block?
From: g:santilli:tiscalinet:it at: 12-Nov-2002 12:39
Hi Andrew,
On Tuesday, November 12, 2002, 4:31:00 AM, you wrote:
AM> I suspect that 'reverse returns the 'tail of the block, because to return
AM> the 'head of the block could be wrong, if one is 'reverse-ing only part of a
AM> block? For example:
Indeed, it could be useful to chain two or more REVERSE/PART:
>> x: [1 2 3 4 5 6]
== [1 2 3 4 5 6]
>> reverse/part reverse/part reverse/part x 2 2 2
== []
>> x
== [2 1 4 3 6 5]
However, maybe it is more common to have it chained with other
functions, where returning the series at the same position as the
argument would be more useful. What do you think?
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r