Skip to content

Instantly share code, notes, and snippets.



Last active Aug 29, 2015
What would you like to do?
Intro To Elixir
people = DB.find_customers 
orders = Orders.for_customers(people) 
tax = sales_tax(orders, 2013) 
filing = prepare_filing(tax)
filing = prepare_filing(sales_tax(Orders.for_customers(DB.find_customers), 2013))
filing = DB.find_customers
          |> Orders.for_customers
          |> sales_tax(2013)
          |> prepare_filing

Source: Programming Elixir: Functional |> Concurrent |> Pragmatic |> Fun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment