plusgets.praat 232 B

123456789101112131415161718
  1. a# = repeat# ({5},100)
  2. b# = a#
  3. stopwatch
  4. for i to 1000000
  5. b# += a#
  6. endfor
  7. writeInfoLine: stopwatch, " ", b# [3]
  8. a# = repeat# ({5},100)
  9. for i to 5
  10. a# += a#
  11. endfor
  12. a# [3] = 160
  13. a# = { 1, 3, 5 }
  14. a# += 10
  15. assert a# = { 11, 13, 15 }