0:00 / 0:00
What the Functor? | Functors in Scala | Rock the JVM
Rock the JVM
27K subscribers • 59 videos on Hallway
- Recommended by 1 person: 1 in engineering communities.
Intermediate. Assumes working knowledge.
13K views5 years ago1 recommendation
Programming languagesSoftware designFunctional programmingDesign patterns
An introduction to functors in Scala, demonstrating how to generalize APIs and map over data structures using the Cats library.
Written version: blog.rockthejvm.com/what-the-functor/ Scala & Cats course: rockthejvm.com/p/cats Links from the video: Type classes: youtube.com/watch?v=bupBZKJT0EA Scala 3 Given/Using: youtube.com/watch?v=vpL-JPHt9qw Monads intro: youtube.com/watch?v=d-dy1x33moA This is a video primarily for Scala folks, but it transfers to other languages e.g. Java, TypeScript, C++ or other typed languages. In this video we'll explore functors, a critical piece of abstract functional programming. Rather than explaining the theory behind it, we go through a concrete use-case of generalizing an API that would otherwise be terribly bloated and repeated. We show how functors work, how they represent the transferable concept of a "mappable" structure and how we can put them in practice and attach a functor to data structures which are mappable, but don't have a standard map method. Follow Rock the JVM on: LinkedIn: linkedin.com/company/rockthejvm Twitter: twitter.com/rockthejvm Blog: rockthejvm.com/blog ------------------------------------------------------------------------- Home: rockthejvm.com -------------------------------------------------------------------------Why it's here
1 person recommends thisWhat people say. Recommended as a practical introduction to functors and functional programming in Scala.