Skip to content

Conversation

@gkorland
Copy link

@gkorland gkorland requested a review from oshadmi March 14, 2022 13:53
@gkorland gkorland requested a review from MeirShpilraien March 14, 2022 14:40
@gkorland gkorland merged commit 6da271e into generic_json_path Mar 14, 2022
@gkorland gkorland deleted the gkorland-duplicate branch March 14, 2022 14:59
for result_value in &ret {
if (*map_value).eq(*result_value) {
tmp.push(*rel_value);
break;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can use a label to break from the outer loop to get to the next rel_value?

'outer: for map_value in map.values() {
    for result_value in &ret {
        if map_value.eq(*result_value) {
            tmp.push(*rel_value);
            break 'outer;
        }
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants