.toList() to .fromList() #3487
-
Bug reportExpected behavior and actual behaviorGreetings from CRG. Steps to reproduce the problem
Program outputCannot invoke method view() on null object Environment
Additional context |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You can use the operator current_list = Channel.from(1, 2, 3, 4).toList()
current_list.view()
executions = current_list.flatMap()
executions.view() |
Beta Was this translation helpful? Give feedback.
-
Hello, @RamilNurtdinov. You're under the misconception that In DSL1, you could obtain the regular Groovy list from a channel outputted by If you want to use a channel multiple times, this should be a value channel and that's exactly what the |
Beta Was this translation helpful? Give feedback.
You can use the operator
flatMap
to perform the opposite action totoList