ForEach¶
Name | - | Description | Default | Type |
---|---|---|---|---|
<input> |
Sequence/table whose elements or key-value pairs need to be processed. | [Any] {Any} |
||
<output> |
The output from processing the sequence/table elements or key-value pairs. | [Any] {Any} |
||
Apply |
The processing logic (in the form of a shard or sequence of shards) to apply to the input sequence/table. | None |
Shard [Shard] |
Processes every element or key-value pair of a sequence/table with a given shard or sequence of shards.
Examples¶
1 2 3 4 5 6 7 8 9 |
|
[info] [shards/General/ForEach/1.edn] 20
[info] [shards/General/ForEach/1.edn] 200
[info] [shards/General/ForEach/1.edn] 40
[info] [shards/General/ForEach/1.edn] 400
[info] [shards/General/ForEach/1.edn] 80
[info] [shards/General/ForEach/1.edn] 800
[info] [shards/General/ForEach/1.edn] 100
[info] [shards/General/ForEach/1.edn] 1000
1 2 3 4 5 6 7 8 9 |
|
[info] [shards/General/ForEach/2.edn] [Age]
[info] [shards/General/ForEach/2.edn] [13.8B Yrs]
[info] [shards/General/ForEach/2.edn] [Name]
[info] [shards/General/ForEach/2.edn] [Universe]