Skip to content

Instantly share code, notes, and snippets.

@johnlokerse
Created September 11, 2023 18:04
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/cda9fdc60a41263a5b68cc55d4e986e3 to your computer and use it in GitHub Desktop.
Save johnlokerse/cda9fdc60a41263a5b68cc55d4e986e3 to your computer and use it in GitHub Desktop.
 Azure Bicep Tips and Tricks Blog
var varShoppingList = [
{
name: 'Milk'
price: 2
}
{
name: 'Bread'
price: 1
}
{
name: 'Chocolate'
price: 3
}
]
var varReceipt = map(varShoppingList, items => items.price)
output outTotalPrice int = reduce(varReceipt, 0, (current, previous) => current + previous)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment