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- 40 min
Over the last two articles of this series, we have discussed different Big Data file formats and their overall…