Re: object replication
- Posted by Ad Rienks <Ad_Rienks at COMPUSERVE.COM> Oct 25, 1998
- 486 views
Michael, It is perfectly good Euphoria, and better readable, to write: result =3D repeat(repeat(0, 12), 1500)) >I think the reason for the first routine performing so badly was inefficient >programming technique. I had been appending the entire resultant sequenc= e >together, say, 1500 * 12 appendations(including piecing of name strings >together) . But my second routine declared space first (in a manner of >speaking), ie: >sequence result >result=3Drepeat({0,0,0,0,0,0,0,0,0,0,0,0},1500) >and then various direct assignments were made to it.