add nextflow d30e48d
This commit is contained in:
6
nextflow/docs/snippets/reduce-with-initial-value.nf
Normal file
6
nextflow/docs/snippets/reduce-with-initial-value.nf
Normal file
@@ -0,0 +1,6 @@
|
||||
channel.of( 1, 2, 3, 4, 5 )
|
||||
.reduce( 'result:' ) { acc, v ->
|
||||
println acc
|
||||
acc + ' ' + v
|
||||
}
|
||||
.view { result -> "final $result" }
|
||||
Reference in New Issue
Block a user