lunduniversity / introprog

Teaching material for "Introduction to Programming using Scala" at Lund University, LTH. http://cs.lth.se/pgk/
142 stars 171 forks source link

w07 change sequence algorithms to use mutable.ArraySeq instead of Array #691

Open bjornregnell opened 1 year ago

bjornregnell commented 1 year ago

e.g. use instead of Array[Pt] :

  type Pts = collection.mutable.ArraySeq[Pt]
bjornregnell commented 1 year ago

BUt it is also good to show how to use the primitive Array and its downsides... Perhaps use ArraySeq in some places and Array in some?