August 27, 2024

P21 - Insert an element at a given position into a list.

Example:

scala

scala> insertAt('new, 1, List('a, 'b, 'c, 'd))
res0: List[Symbol] = List('a, 'new, 'b, 'c, 'd)
Be first to comment
Leave a reply