Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: "piping" functions

From: gabriele::colellachiara::com at: 24-Nov-2005 12:40

Hi Jean-Francois, On Thursday, November 24, 2005, 2:42:04 AM, you wrote:
>>>COPY/PART B BACK TAIL B
JFA> doesn't return the same thing as in:
>>>BACK TAIL B
JFA> why? Because a SERIES holds a sequence of values (rebol values, characters, and so on), AND a position in the sequence.
>> b: [1 2 3 4]
== [1 2 3 4]
>> mold/all b
== "[1 2 3 4]"
>> c: next b
== [2 3 4]
>> mold/all c
== "#[block![1 2 3 4]2]" C and B share the same sequence of values, but they have a different position. COPY, instead, creates a new sequence copying from the source series. I'll find many discussions on this list about series... :) Regards, Gabriele. -- Gabriele Santilli <gabriele-rebol.com> --- http://www.rebol.com/ Colella Chiara software division --- http://www.colellachiara.com/