Skip to content

Instantly share code, notes, and snippets.

@rianrainey
Last active August 29, 2015 14:26
Show Gist options
  • Save rianrainey/edd7bda8fbfdcd4aeeed to your computer and use it in GitHub Desktop.
Save rianrainey/edd7bda8fbfdcd4aeeed to your computer and use it in GitHub Desktop.
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