1. append vs &

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  .

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu