~/talk

Functors, in Theory and in Practice!

TalkinFrenchat ScalaIO 2019 · 2019-10-29..10-31· [machine-learning]
links:none on file
slides:none on file

Defines functors as type constructors with a map that preserves identity and composition, and implements a Scala Functor typeclass with examples for Option, List and a custom Container. Uses Scala, Cats and discipline tests to check functor laws, demonstrates map implementations in a live demo, and explains that applicatives (pure and ap) are needed for generic insertion and multi-argument application which plain functors cannot provide.

AI-written summary · about

  1. 0:00Start
  2. 3:20The map function
  3. 4:12A common pattern
  4. 6:16Type class - Definition
  5. 7:37Type class - Example
  6. 9:10Type constructor
  7. 10:03Functor type class - Trait
  8. 10:32Functor type class - Instance
  9. 12:16Functor type class - Laws
  10. 14:18Category theory
  11. 17:55What about Scala?
  12. 19:03What about Scala?
  13. 19:54Back to our functors!
  14. 22:16Functors in Scala
  15. 25:57Benefits - Abstraction
  16. 27:36Benefits - Generic transformation
  17. 29:50How to do it?
  18. 32:11Applicative functors
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.