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
comment: "{{ source | askAI("based on the given context, describe in plain english the changes introduced in this PR.", env.OPEN_AI_TOKEN) | prependTitle("gitStream Describe PR") | encode }}"
Copy file name to clipboardExpand all lines: docs/filter-functions.md
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -18,19 +18,19 @@ The following functions are supported in addition to the built-in functions prov
18
18
19
19
<divclass="big-summary"markdown=1>
20
20
21
-
| Function | Input | Args | Output |
22
-
| --------------- | ------- | ---- |---- |
23
-
|[`capture`](#capture)<br />Find and return the first occurrence of a regex in the input string | String |`regex`|[Objects]|
24
-
|[`difference`](#difference)<br />Given two lists, keep only items that are in the 1st list but not in the 2nd. |[Objects]|`list`|[Objects]|
25
-
|[`every`](#every)<br />Checks whether all element in the list are `true`|[Bool]| - | Bool |
26
-
|[`filter`](#filter)<br />Reduce list of items into a list of same items that match the specified term |[String]<br />[Object]|`regex`, `term`, `list`, `attr`|[String]<br />[Object]|
27
-
|[`includes`](#match)<br />Check if substring match | String |`regex`, `term`, `list`| Bool |
28
-
|[`intersection`](#intersection)<br />Given two lists, keep only items that are in both lists.|[Objects]|`list`|[Objects]|
29
-
|[`map`](#map)<br />Maps each object in a list into their specified attribute value |[Object]|`attr`|[Object]|
30
-
|[`match`](#match)<br />Maps list of items into a list of booleans that match the specified term |[String]<br />[Object]|`regex`, `term`, `list``attr`|[Bool]|
31
-
|[`nope`](#nope)<br />Checks whether all element in the list are `false`|[Bool]| - | Bool |
32
-
|[`reject`](#reject)<br />Inverse of [`filter`](#filter), the result list contains non-matching items |[String]<br />[Object]|`regex`, `term`, `list`, `attr`|[String]<br />[Object]|
33
-
|[`some`](#some)<br />Checks whether at least one element in the list is `true`|[Bool]| - | Bool |
|[`capture`](#capture)<br />Find and return the first occurrence of a regex in the input string | String |`regex`|[Objects]|
24
+
|[`difference`](#difference)<br />Given two lists, keep only items that are in the 1st list but not in the 2nd. |[Objects]|`list`|[Objects]|
25
+
|[`every`](#every)<br />Checks whether all element in the list are `true`|[Bool]| - | Bool|
26
+
|[`filter`](#filter)<br />Reduce list of items into a list of same items that match the specified term |[String]<br />[Object]|`regex`, `term`, `list`, `attr`|[String]<br />[Object]|
27
+
|[`includes`](#match)<br />Check if substring match | String |`regex`, `term`, `list`| Bool|
28
+
|[`intersection`](#intersection)<br />Given two lists, keep only items that are in both lists.|[Objects]|`list`|[Objects]|
29
+
|[`map`](#map)<br />Maps each object in a list into their specified attribute value |[Object]|`attr`|[Object]|
30
+
|[`match`](#match)<br />Maps list of items into a list of booleans that match the specified term |[String]<br />[Object]|`regex`, `term`, `list``attr`|[Bool]|
31
+
|[`nope`](#nope)<br />Checks whether all element in the list are `false`|[Bool]| - | Bool|
32
+
|[`reject`](#reject)<br />Inverse of [`filter`](#filter), the result list contains non-matching items |[String]<br />[Object]|`regex`, `term`, `list`, `attr`|[String]<br />[Object]|
33
+
|[`some`](#some)<br />Checks whether at least one element in the list is `true`|[Bool]| - | Bool|
0 commit comments