Files
ma/nextflow/docs/snippets/reduce-with-initial-value.nf
2026-04-29 23:01:54 +02:00

6 lines
152 B
Plaintext

channel.of( 1, 2, 3, 4, 5 )
.reduce( 'result:' ) { acc, v ->
println acc
acc + ' ' + v
}
.view { result -> "final $result" }