I’m doing https://www.scala-exercises.org/cats/ and studying extra advanced purposeful programming ideas from other sources as properly. My context is that I basically work in Files Science / Engineering. I are seeking to toughen the library we created for producing parts for machine studying units.
I’ve been suspending the choice to include any library worship cats or scalaz into our work. The reasons are:
I don’t realize the ideas so properly to make use of them in follow.
I’m no longer in point of fact budge whether it’s a ways a should-comprise. After I carried out attempting to make use of the advanced ideas I settled for fashioned purposeful composition/monoids and I mediate I’m okay with the use of
Going inspire to the distinctive request – what advantages such libraries in point of fact give in follow? If I learn about an stammer worship this under and the solution, I’m pondering to myself “I can also put in force this with out problems with out importing your total overhead”. In particular when a lot of the functionalities are already implemented in Scala – cats reimplements flatMap on Listing the use of flatMap manner on Listing and so forth.
val FoldableListOption = Foldable[List].arrangement[Option] FoldableListOption.fold(Listing(Option(1), Option(2), Option(3), Option(4))) needs to be(10) FoldableListOption.fold(Listing(Option("1"), Option("2"), None, Option("3"))) needs to be("123")
2nd request, if I should gathered learn the advanced ideas which ones you defend in mind the most practical and famous?
We hate SPAM and promise to keep your email address safe