
Pipesicle
By Nadinda Rachmat

PipesicleJan 31, 2021

Index 2: Learn Elm-flavored Haskell by binding love
The program we wrote is available on Repl.it at https://repl.it/@tmcl1/BindYourLove#Main.hs
It's also available on github at https://github.com/tmcl/BindYourLove

Index 1: Piping, currying and the order of function parameters
In this episode, we discuss piping in Elm and Elixir, we discuss currying functions and we also talk a bit about why functions parameters go in different orders between Elm and Elixir, and how that works out in practice.
Tristan tries to read out some code examples. During the discussion on currying, he reads some javascript:
First, the uncurried, natural form:
function (x, y) { return x + y; }and then, the curried javascript form:
function (x) { return function (y) { return x + y; }; }
Later, in the discussion on function parameter order in Elixir vs Elm, he compares some Elm code in piped and unpiped form with some Elixir code in piped and unpiped form.
First, piped Elm:
getPeople source |> List.filter (hasMinimumAge 20)Second, unpiped Elm:
let people = getPeople source in List.filter (hasMinimumAge 20) peopleNext, piped Elixir:
getPeople source |> Enum.filter(hasMinimumAge 20)And finally, unpiped Elixir:
people = getPeople source Enum.filter(people, hasMinimumAge 20)Reach out to Nadinda on Twitter/Instagram @nadindadev and Tristan on Twitter @tmcll.
Thanks, see you next time!

Index 0: How I got into functional programming - Nadinda's version
Welcome to our first episode. We mention Outreachy in this episode.
Feel free to reach out to us at @nadindadev on Twitter/Instagram or @tmcl on Twitter.