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

6 lines
142 B
Plaintext

channel.of( 1, 2, 3, 4, 5 )
.reduce { a, b ->
println "a: $a b: $b"
a + b
}
.view { result -> "result = $result" }