Do cats lack Intersperse?

I found several methods that were not available - intersperseList .

Why is it not available? Or is there somewhere a function that performs the intersection operation?

Functionality example from ScalaZ:

 scala> intersperse(List(1, 2, 3), 7) res3: List[Int] = List(1, 7, 2, 7, 3) 
+5
source share

Source: https://habr.com/ru/post/1265436/


All Articles