Skip to content

All possible combinations within channel no overlap #2109

Answered by davidmasp
davidmasp asked this question in Q&A
Discussion options

You must be logged in to vote

Okay, I think this seems to be working but I am not sure how to scale it for a more complex channel.

cheers_comb.filter{ it[0] != it[1] }
           .map{it = it.sort()}
           .unique()
           .set{cheers_comb2}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by davidmasp
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants