1. append vs &
- Posted by Mike Burrell <Mike.Burrell at GEOCITIES.COM> May 06, 1997
- 832 views
throughout my euphoria programming life, i've never really used or given much thought to prepend() and append() because i could do exactly the same thing with the & operator, but i read over some of the euphoria documenation and noticed that it said prepend and append were highly optimised in some situations, so i am wondering how much of a difference in performance the following would make (btw s1 and s2 are sequences, a1 is an atom): s1 = s1 & {s2} -- versus s1 = append(s1,s2) -- or s1 = s1 & a1 -- versus s1 = appen(s1,a1) . o O Mike Burrell O o . . o O http://www.geocities.com/SoHo/9036 O o . . o O burrellm at geocities.com O o .