Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Functor Zoo - Exploring Functional Programming Concepts

Conf42 via YouTube

Overview

Explore the world of functors in Python programming through this 23-minute conference talk from Conf42 Python 2024. Dive into various functor types, including covariant, contravariant, applicative, and bifunctors. Learn about category theory concepts, side effects in IO, partial functions, and composability. Discover how functors can enhance code organization and flexibility. Examine practical examples of different functor implementations and their applications in Python. Gain insights into advanced topics like closed categories, profunctors, and the star/costar relationship. By the end of this talk, acquire a comprehensive understanding of functors and their role in modern Python development.

Syllabus

intro
preamble
about this talk
about me
agenda
a function
another function
category of types t
list of numbers
clist of numbers
clist is a functor
io side effects
io functor
partial function
not very composable
option for better composability
option is a functor
composing functors
category od small categories
example of clist . option
covariant functor in general
contravariant functor
predicate is a contravariant functor
closed category
applicative functor is lax closed functor
example of applicative functor
bifunctor
example of bifunctor
profunctor
forget
star and costar
example of star profunctor
summary

Taught by

Conf42

Reviews

Start your review of Functor Zoo - Exploring Functional Programming Concepts

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.