Skip to content

Shared References when Folding with a Row or Column? #1382

Answered by hecrj
cryptoquick asked this question in Q&A
Discussion options

You must be logged in to vote

push takes self and returns Self, so you can just write:

// ...

       if let Some(el) = el {
            c.push(el)
        } else {
            c
        }
    });

    r.push(column)
});

Replies: 2 comments 1 reply

Comment options

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

Comment options

You must be logged in to vote
0 replies
Answer selected by hecrj
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
Converted from issue

This discussion was converted from issue #1381 on July 10, 2022 03:31.