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