Skip to content

Instantly share code, notes, and snippets.

@johnlokerse
Created September 26, 2022 19:51
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 johnlokerse/b9db70e6bf48a30cc11ea2397b2916d6 to your computer and use it in GitHub Desktop.
Save johnlokerse/b9db70e6bf48a30cc11ea2397b2916d6 to your computer and use it in GitHub Desktop.
var varReceipt = map(varGroceryStore, items => items.productPrice)
output outUsingReduce int = reduce(varReceipt, 0, (currentValue, previousValue) => currentValue + previousValue)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment