21it
21it
Thanks! I think without currying those combinators are pretty useless, because usually they are used in places like this (just dummy example) ```elixir some_either |> bimap(const(false), const(true)) ```
Thanks for suggestion, but I leave this job to someone else :) I'm doing my own functional library instead 😀
Actually additional brackets fix behaviour. But result of expression without brackets is completely unexpected. It should be compilation error in my opinion (if it can't be fixed). ```elixir iex(1)> use...
Hi @collegeimprovements , nice to see that you are interested in functional programming! There are are a lot of resources, most of them are Haskell-related, but I guess this is...
Quark, Witchcraft and Algae are another family of functional programming libraries for Elixir. They are done by people with some academical background for sure, but atm they are pretty abandoned...
Well, I didn't dig much into Witchcraft/Algae/Quark, I just found that they are not working like I would like to see them work) Let's check how they define Maybe https://github.com/witchcrafters/algae/blob/39922c6f6ca67577921ab887ae4662ddf22e3d98/lib/algae/maybe.ex#L32-L35...
In contrast of protocols in Witchcraft, in Wonderland I'm using behaviours to implement type classes. It's pretty easy actually: https://github.com/tkachuk-labs/wonderland/blob/575cb23fa14b9adba5520b5e608e6029296d7b11/lib/wonderland/type_class/functor.ex#L5-L9 This is the only option which can work with Calculus...
> I had great success introducing Witchcraft on a current Elixir project That's really great! Because Elixir and Erlang community in general is not friendly for functional programming, and if...
> and bring my Elm to the next level If you like both Elm and Elixir, you might be interested in this project https://wende.github.io/elchemy/ There are couple of other typed...