Skip to content
Discussion options

You must be logged in to vote

flatten is what you need, and you can make it a bit simpler:

fetchRunAccesionsForBioProject() .map { it.readLines() } .flatten()

The output of fetchRunAccesionsForBioProject is a value channel because it has no inputs. When a process has no inputs or all of its inputs are value channels, the output will also be a value channel.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bentsherman
Comment options

Answer selected by ArchKudo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants