~/talk

Functor Zoo

Talkat Conf42 Python 2024 · on Thursday, 2024-02-29· [functional-programming]
name:Chaur Wu
links:none on file
slides:none on file

Demonstrates concrete Python code using the FunkLIFT library to treat collections and effects as functors: maps a list [1,2,3,4] with CList.fmap, wraps console reads as an IO functor and defers side effects via an unsafe_run, turns a partial modulo-by-zero into a composable Option/applicative value and shows composition with Compos to map inside nested containers. Shows bifunctor Either with left/right mapping and profunctor examples like Star using dimap to build composable data pipelines.

AI-written summary · about

  1. 0:00intro
  2. 0:20preamble
  3. 0:31about this talk
  4. 1:06about me
  5. 1:21agenda
  6. 1:32a function
  7. 1:58another function
  8. 2:16category of types (t)
  9. 3:01list of numbers
  10. 3:27clist of numbers
  11. 4:01clist is a functor
  12. 4:49io side effects
  13. 6:06io functor
  14. 6:58partial function
  15. 7:37not very composable
  16. 8:15option for better composability
  17. 9:01option is a functor
  18. 9:18composing functors
  19. 10:26category od small categories
  20. 10:44example of clist . option
  21. 11:31covariant functor in general
  22. 12:07contravariant functor
  23. 12:43predicate is a contravariant functor
  24. 13:24closed category
  25. 15:58applicative functor is lax closed functor
  26. 16:22example of applicative functor
  27. 17:29bifunctor
  28. 18:47example of bifunctor
  29. 19:38profunctor
  30. 21:05forget
  31. 21:16star and costar
  32. 21:44example of star profunctor
  33. 22:57summary
~/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.