def recursiveSum(xs: List[Int]): Int =
if (xs.isEmpty) 0
else (xs.head + recursiveSum(xs.tail))
recursiveSum(List(1, 2, 3))
// res0: Int = 6
Scala- 20 min
- Deep Dive
- Data Science
- Python
Of all the libraries belonging to any Data Scientist’s toolbox, Pandas may be the most important one; it’s built on top…