u/Mrbouttein r/functionalprogramming • Recommends
Intro to functors, bifunctors, and profunctors
Intermediate. Assumes working knowledge.
2.6K views5 years ago1 recommendation
Programming languagesComputer scienceTypeScriptFunctional programming
Victor Boutté explains the concepts of Functor, Bifunctor, and Profunctor in category theory using TypeScript and the fp-ts library.
In this video we cover the concept of Functors from Category Theory as it relates to functional programming. Specifically we take a look at fp-ts implementations of Functor, Bifunctor, and Profunctor. We also spend a little time covering what Contramap is and how it's used within Profunctor. Intro and value add: Slides: Functor Example: Bifunctor Example: Contramap Example: Profunctor Example: Wrap up: git repository: github.com/monsieurBoutte/fp-101-series files from repo, that are explored in this video: github.com/monsieurBoutte/fp-101-series/tree/master/src/5th-… codesandbox for this video: codesandbox.io/s/mystifying-paper-9iibo?file=/src/Profunctor… other resources: Tom Harding series tomharding.me/2017/06/26/fantas-eel-and-specification-18/ Option type declartion github.com/gcanti/fp-ts/blob/master/src/Option.ts#L72 ReadonlyArray sort implementation github.com/gcanti/fp-ts/blob/master/src/ReadonlyArray.ts#L80… Javascript Array.slice developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Gl… Javascript Array.sort developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Gl… Reader promap implementation github.com/gcanti/fp-ts/blob/master/src/Reader.ts#L153 follow for more fp 101 updates: twitter.com/monsieurBoutteu/Mrbouttein r/functionalprogramming • Recommends