Re: Append or concatenate to each element in sequence
- Posted by Tommy Carlier <tommy.carlier at telenet.be> Aug 20, 2004
- 468 views
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