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

4 lines
116 B
Plaintext

// comparator function
channel.of( "hello", "hi", "hey" )
.min { a, b -> a.length() <=> b.length() }
.view()