-
-
Save johnlokerse/cda9fdc60a41263a5b68cc55d4e986e3 to your computer and use it in GitHub Desktop.
Azure Bicep Tips and Tricks Blog
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
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