Given an immutable
Seq[A], a new element
a: A and a position
pos: Int, I’d like to obtain a new Seq[A] that is like the old Seq, except that the element at position
pos is replaced by
a. Is there something in the standard library to do this? Thanks!