August 27, 2024
P20 - Remove the K Kth element from a list.
Return the list and the removed element in a Tuple. Elements are numbered from 0.
Example:
scala
scala> removeAt(1, List('a, 'b, 'c, 'd))
res0: (List[Symbol], Symbol) = (List('a, 'c, 'd),'b)