Skip to content

Combining two tuples on differing keys, I don't understand what I'm doing wrong. #4716

Answered by bentsherman
gdevenyi asked this question in Q&A
Discussion options

You must be logged in to vote

The issue is that your inputs are mismatched. The template entries are in index 0 on one side and index 1 on the other. Instead you should modify one of the channels so that the template entry is in the same index for both. For example:

    atlasTemplateTransforms.map { it -> [it[1], it[0], it[2], it[3]] } .combine(templateSubjectTransforms).view()

So now the template entry should be in index 0 for both channels and then combine will use index 0 by default.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@bentsherman
Comment options

@gdevenyi
Comment options

@gdevenyi
Comment options

@bentsherman
Comment options

Answer selected by gdevenyi
@gdevenyi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants