Skip to content

Instantly share code, notes, and snippets.

@tugberkugurlu
Created November 14, 2016 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tugberkugurlu/3f3bba0f045b61e528dd32a8955dc529 to your computer and use it in GitHub Desktop.
Save tugberkugurlu/3f3bba0f045b61e528dd32a8955dc529 to your computer and use it in GitHub Desktop.
// getProducts connects to DB to retrieve the products
// getRevenue connects to DB to retrieve revenue based on the product attributes
// convertRevenue and calculateProfit are pure functions
// saveProfit writes the calculated profit to a DB
getProducts 1 |>
getRevenue |>
convertRevenue |>
calculateProfit |>
saveProfit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment