IVR
Does anyone make regular use of functional programming patterns like functors, monads and applicatives in Elixir?
Hi all,
As the title suggests, I’m curious to know if anyone makes effective use of the mentioned patterns (as well as other similar ones). I started learning these concepts through Scala and I’m having a hard time digesting this information. Even though Elixir is a functional programming language, fortunately, I haven’t seen these same concepts used as much here although I have seen a few relevant libraries like Witchcraft. I sense that for whatever reason, these patterns are not particularly popular in Elixir and I’d also be curious to hear why that is so. Any thoughts or opinions on this topic are welcomed ![]()
Most Liked
hauleth
{:ok, val}/{:error, val}tuples are monadsPlug.Connis state monadwithisdo-like notation
al2o3cr
IMO the terminology is not particularly popular, but the ideas are all over the place. For instance, you can spot a free monad if you squint at gen_statem transition actions just right, or the Absinthe middleware pipeline where middlewares can return data that affects the middleware stack like self-modifying code.
Popular in Discussions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









