Foldable

ScalaFP: Let’s discuss about Foldable

Reading Time: 3 minutes In our today’s blog, we are going to discuss a type of iterator called foldable that is used to iterate over collections.¬†Foldable is an abstraction for the foldLeft & foldRight. We will now look in the Foldable. Foldable Foldable type class contains the foldLeft & foldRight are instances of foldable which we are used on List, Vector, and Stream. We can create generic folds with Continue Reading