commit
3d33412e9a
1 file changed
+34
-34
@@ -691,44 +691,44 @@ sections:
|
|||||||
output: ["null"]
|
output: ["null"]
|
||||||
|
|
||||||
- title: `any`
|
- title: `any`
|
||||||
body: |
|
body: |
|
||||||
|
|
||||||
The filter `any` takes as input an array of boolean values,
|
The filter `any` takes as input an array of boolean values,
|
||||||
and produces `true` as output if any of the the elements of
|
and produces `true` as output if any of the the elements of
|
||||||
the array is `true`.
|
the array is `true`.
|
||||||
|
|
||||||
If the input is an empty array, `any` returns `false`.
|
If the input is an empty array, `any` returns `false`.
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
- program: any
|
- program: any
|
||||||
input: '[true, false]'
|
input: '[true, false]'
|
||||||
output: ["true"]
|
output: ["true"]
|
||||||
- program: any
|
- program: any
|
||||||
input: '[false, false]'
|
input: '[false, false]'
|
||||||
output: ["false"]
|
output: ["false"]
|
||||||
- program: any
|
- program: any
|
||||||
input: '[]'
|
input: '[]'
|
||||||
output: ["false"]
|
output: ["false"]
|
||||||
|
|
||||||
- title: `all`
|
- title: `all`
|
||||||
body: |
|
body: |
|
||||||
|
|
||||||
The filter `all` takes as input an array of boolean values,
|
The filter `all` takes as input an array of boolean values,
|
||||||
and produces `true` as output if all of the the elements of
|
and produces `true` as output if all of the the elements of
|
||||||
the array are `true`.
|
the array are `true`.
|
||||||
|
|
||||||
If the input is an empty array, `all` returns `true`.
|
If the input is an empty array, `all` returns `true`.
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
- program: all
|
- program: all
|
||||||
input: '[true, false]'
|
input: '[true, false]'
|
||||||
output: ["false"]
|
output: ["false"]
|
||||||
- program: all
|
- program: all
|
||||||
input: '[true, true]'
|
input: '[true, true]'
|
||||||
output: ["true"]
|
output: ["true"]
|
||||||
- program: all
|
- program: all
|
||||||
input: '[]'
|
input: '[]'
|
||||||
output: ["true"]
|
output: ["true"]
|
||||||
|
|
||||||
- title: `range`
|
- title: `range`
|
||||||
body: |
|
body: |
|
||||||
|
|||||||
Reference in new issue
Block a user