[REBOL] Re: "piping" functions
From: jf_allie:h:otmail at: 24-Nov-2005 1:42
Graham,
GC> "back tail series" returns the series one back from the end
My understanding is that your statement isn't exactly correct since the
wholeseries is in fact returned even if you only see it starting from the
INDEX position.
>>b: [1 2 3 4]
== [1 2 3 4]
>>c: back tail b
== [4]
>>head? c
== false
>>index? c
== 4
>>c: head c
== [1 2 3 4]
>>index? c
== 1
... but if you do a copy then you do end up with a series that actualy
startsat the INDEX.
>>d: copy back tail b
== [4]
>>head? d
== true
>>index? d
== 1
This isn't to be nitpicking, but to understand these functions. Right now,
with what I know, BACK TAIL B in this function:
>>COPY/PART B BACK TAIL B
doesn't return the same thing as in:
>>BACK TAIL B
why?
Gabriele,
>>Actually, INDEX? is not needed.
>>>>b: [1 2 3 4]
>>== [1 2 3 4]
>>>>copy/part b back tail b
>>== [1 2 3]
>>Regards,
>>Gabriele.
Yes precisely, but how come this function works without INDEX? as in
Graham'sversion?
cheers,
JF