Skip to content

Commit 8cfc95d

Browse files
committed
Add map exercise code
1 parent 8990cc5 commit 8cfc95d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env nextflow
2+
3+
Channel
4+
.of( 1, 2, 3, 4, 5 )
5+
.map { it * it }
6+
.subscribe onNext: { println it }, onComplete: { println 'Done' }
7+
8+
// Channel
9+
// .of( 1, 2, 3, 4, 5 )
10+
// .map { it * it }
11+
// .view()

0 commit comments

Comments
 (0)