You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/bicep/bicep-functions-lambda.md
+111-6Lines changed: 111 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Describes the lambda functions to use in a Bicep file.
4
4
author: mumian
5
5
ms.topic: conceptual
6
6
ms.author: jgao
7
-
ms.date: 09/20/2022
7
+
ms.date: 02/09/2023
8
8
9
9
---
10
10
# Lambda functions for Bicep
@@ -22,7 +22,7 @@ This article describes the lambda functions to use in Bicep. [Lambda expressions
22
22
23
23
Bicep lambda function has these limitations:
24
24
25
-
- Lambda expression can only be specified directly as function arguments in these functions: [`filter()`](#filter), [`map()`](#map), [`reduce()`](#reduce), and [`sort()`](#sort).
25
+
- Lambda expression can only be specified directly as function arguments in these functions: [`filter()`](#filter), [`map()`](#map), [`reduce()`](#reduce), [`sort()`](#sort), and [`toOrder()`](#toobject).
26
26
- Using lambda variables (the temporary variables used in the lambda expressions) inside resource or module array access isn't currently supported.
27
27
- Using lambda variables inside the [`listKeys`](./bicep-functions-resource.md#list) function isn't currently supported.
28
28
- Using lambda variables inside the [reference](./bicep-functions-resource.md#reference) function isn't currently supported.
@@ -48,7 +48,7 @@ An array.
48
48
49
49
### Examples
50
50
51
-
The following examples show how to use the filter function.
51
+
The following examples show how to use the `filter` function.
52
52
53
53
```bicep
54
54
var dogs = [
@@ -120,7 +120,7 @@ An array.
120
120
121
121
### Example
122
122
123
-
The following example shows how to use the map function.
123
+
The following example shows how to use the `map` function.
124
124
125
125
```bicep
126
126
var dogs = [
@@ -187,7 +187,7 @@ Any.
187
187
188
188
### Example
189
189
190
-
The following examples show how to use the reduce function.
190
+
The following examples show how to use the `reduce` function.
191
191
192
192
```bicep
193
193
var dogs = [
@@ -263,7 +263,7 @@ An array.
263
263
264
264
### Example
265
265
266
-
The following example shows how to use the sort function.
266
+
The following example shows how to use the `sort` function.
267
267
268
268
```bicep
269
269
var dogs = [
@@ -298,6 +298,111 @@ The output from the preceding example sorts the dog objects from the youngest to
0 commit comments