Re: Append or concatenate to each element in sequence

new topic     » goto parent     » topic index » view thread      » older message » newer message

Sorry, my previous post had a bug in it: instead of srcSeq &= toAppend, it
should be srcSeq[i] &= toAppend.
sequence s1

global function seqConcat(sequence srcSeq, object toAppend)
  for i = 1 to length(srcSeq) do
    srcSeq[i] &= toAppend
  end for
  return srcSeq
end function  --seqConcat()

s1 = seqConcat({"abc","def","ghi"}, '\n')


--
tommy online: http://users.telenet.be/tommycarlier
Euphoria Message Board: http://uboard.proboards32.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu