Created
November 14, 2016 17:53
-
-
Save tugberkugurlu/3f3bba0f045b61e528dd32a8955dc529 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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