Questions tagged [nested]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-4
votes
0answers
70 views

How to rewrite my code with streams - could it be even done? [closed]

I produced this nested loops solution with label for breaking the iteration over two nested collections. Is there (and I hope there is) some more elegant solution that this? (e.g. streams, avoiding ...
1
vote
2answers
89 views

Variable length nested list of lists pad shape

Find shape of n-dim array that'd be formed from nested list of lists with variable lengths if we were to pad the lists to same length at each nest level. E.g. ...
5
votes
3answers
429 views

Refactor JavaScript nested if-else

I'm really new to code optimization and JS. I would like to ask for help on optimizing my code. Thank you in advance. Here is my code: ...
4
votes
3answers
160 views

Excel VBA Nested Loop Alternative

I am not an advanced user of Excel and am VERY new to VBA. My only programming experience is 2 C# classes in college. That being said, go easy on me ;) I am working on a team that audits military ...
1
vote
1answer
54 views

Posting data to endpoints

Here's the code I am trying to refactor. The same Http client is being used in each nested try with resource. I don't understand the rationale behind nesting client.execute() calls. The code tries to ...
2
votes
3answers
135 views

C# Update account based on user order data. Nested if-else optimization with almost similar values

The method works, but I would like to know if there is any way to make it more readable, optimized? I have user data (i want to import/update it). Accounts is finded by user data. ======== User order ...
4
votes
1answer
1k views

Rust Beginner: flatten nested matches

This is how I implemented the guessing game - chapter 2 of the Rust book: https://doc.rust-lang.org/book/ch02-00-guessing-game-tutorial.html ...