Hello everyone,   I wrote these two functions BUTFIRST and BUTLAST (as in
LOGO)   butlast: func [series] [
 copy/part num (length? num) - 1]   butfirst: func [series] [
 copy/part next num (length? num) - 1]   It seemed to work:   >>num: [1 2 3
4]
== [1 2 3 4]
>>butfirst num
== [2 3 4]
>>butlast num
== [1 2 3]     ... but unfortunately, when I try to compose functions with
them as in:   
>>butfirst butlast num
== [2 3 4]
>>butlast butfirst num
== [1 2 3]   I'm very curious to understand why.   many thanks jf 
-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to