On 11/23/05, Jean-Francois Allie <[EMAIL PROTECTED]> wrote: > Hello everyone, I wrote these two functions BUTFIRST and BUTLAST (as i= n > 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] > =3D=3D [1 2 3 4] > >>butfirst num > =3D=3D [2 3 4] > >>butlast num > =3D=3D [1 2 3] ... but unfortunately, when I try to compose functions= with > them as in: > >>butfirst butlast num > =3D=3D [2 3 4] > >>butlast butfirst num > =3D=3D [1 2 3] I'm very curious to understand why. many thanks jf
Good question, confused me too. Until i discovered you wrote: butlast: func [series] [copy/part num (length? num) - 1] In rebol 'series is the arguement, 'num is the global. > -- > To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject. > > -- -Volker "Any problem in computer science can be solved with another layer of indirection. But that usually will create another problem." David Wheeler -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
