Skip to content

Commit 3f94144

Browse files
committed
Add Iterable toList() method
1 parent 615c440 commit 3f94144

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/nextflow/script/types/shim/Iterable.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ Transforms each element in the iterable with the given closure and returns the s
138138
""")
139139
<R> R sum(Function<E,R> transform);
140140

141+
@Description("""
142+
Converts the iterable to a list.
143+
""")
144+
List<E> toList();
145+
141146
@Description("""
142147
Converts the iterable to a set. Duplicate elements are excluded.
143148
""")

0 commit comments

Comments
 (0)