Welcome to nhpip's github projects

Hi, I’m @nhpip

Current interests are functional languages (Erlang / Elixir) and learning Haskell

Currying and Partial Application in Elixir

Currying is the process by which a function with an arity of N is turned into N functions
each with an arity of 1. For example:

x = f(a,b,c)

Becomes:

h = g(a); i = h(b); x = i(c)

Partial application involves taking a function of N arguments; initially calling it with X
arguments and then again with the remaining arguments. For example:

x = f(a,b,c,d,e)

Becomes:

h = g(a,b,c); x = h(d,e)


https://github.com/nhpip/curry-elixir

Variadic

Variadic Functions in Elixir

Functions that can take an arbritary number of arguments.

https://github.com/nhpip/variadic-elixir
Variadic