Podchaser Logo
Home
17: Applicative Functors

17: Applicative Functors

Released Saturday, 26th August 2017
Good episode? Give it some love!
17: Applicative Functors

17: Applicative Functors

17: Applicative Functors

17: Applicative Functors

Saturday, 26th August 2017
Good episode? Give it some love!
Rate Episode

Building on the power of functors we examine a few scenarios where a normal Functor is problematic. Fortunately, there is a closely related structure known as an Applicative Functor that can provide the capabilities to solve a broader range of problems.

Episode 17 patrons:

Chad WooleyDavid KeathleyAndre Carvalho

Show Notes:

Coconut programming language: http://coconut-lang.org/

Hack nights instead of presentations: http://tech.noredink.com/post/142283641812/designing-meetups-to-build-better-communities

class Functor f => Applicative f wherepure :: Applicative f => a -> f aap :: Applicative f => f (a -> b) -> f a -> f b

Example of applicative usage:

pure (+) <*> Just 3 <*> Just 2 -- this results in Just 5(+) <$> Just 3 <*> Just 2 -- this is the same as aboveliftA2 (+) (Just 3) (Just 2) -- alternate form using lift instead of infix operators

Show More

Unlock more with Podchaser Pro

  • Audience Insights
  • Contact Information
  • Demographics
  • Charts
  • Sponsor History
  • and More!
Pro Features