Questions tagged [nested]

This tag relates to any of various nested entities or operations in programming.

This tag relates to any of various nested entities in programming, including but not limited to:

  • Nested data structures
  • Nested queries
  • Nested calls to a procedure, subroutine, method or operation

For example, nesting queries in SQL means to create a subquery. Its result is used in the query itself and provides a query order and subsets.


Related tags :

16389 questions
3
votes
2 answers

Scan a Sql Query sqlx.Rows into a Nested Structure in golang

I have three following tables: create table A ( a_id varchar(256) not null unique, a_name varchar(256) ); create table B ( b_id varchar(256) not null, b_a_id varchar(256) not null, b_name varchar(256), FOREIGN KEY (b_a_id)…
3
votes
1 answer

Access local variables in a nested Delphi x64 assembly code

I want to access the local variables of a Delphi procedure from its nested assembly procedure. Although the compiler does allow the references of the local variables, it compiles wrong offsets which only work if the EBP/RBP values are hacked. In the…
3
votes
2 answers

How do I get specific keys and their values from nested dict in python?

I need help, please be kind I'm a beginner. I have a nested dict like this: dict_ = { "timestamp": "2022-11-18T10: 10: 49.301Z", "name" : "example", "person":{ "birthyear": "2002" "birthname": "Examply" }, "order":{ "orderId":…
JazCodes
  • 39
  • 4
3
votes
2 answers

Index i out of range for an array while using nested loops

Starting to learn to code and I was doing the fantasy items exercise from automate boring stuff with python. I tried comparing each item of the addedItems array to the dictionary keys to see if they exist, if not I would create a new key with the…
ZhNgR
  • 31
  • 2
3
votes
2 answers

Parallel on .NET 3.5 - Threads not Finishing Their Tasks in Nested For

I downloaded Parallel Extensions for .NET 3.5 SP1 on DevLabs a while ago and started using it. Everything seemed to work fine until I noticed some exceptions in the logs which I have a hard time to understand why they happened. Here's a snippet of…
notlkk
  • 1,231
  • 2
  • 23
  • 40
3
votes
2 answers

Nested dictionary to nested tuple

I know that it shouldn't be hard, however, I can't resolve my issue. I have a nested dictionary and I need to convert its values to the same structure tuple. dict1 = {'234':32,'345':7,'123':{'asd':{'pert': 600, 'sad':500}}} The result should be…
3
votes
1 answer

Addition to nested list

I wanted to add element with the next value to the most nested list, i. e. For list list_in = [2, 3, [4, 5, [6, 7], 6], 2, [5, 6]] The program should return list_out = [2, 3, [4, 5, [6, 7, 8], 6], 2, [5, 6]] In case with e. x. two equal nests, I…
Malum Phobos
  • 115
  • 6
3
votes
2 answers

Update binding when nested object changes

I have a some XAML as follows (a simple Label and Button):
MrNick
  • 399
  • 2
  • 8
  • 16
3
votes
1 answer

Creating a function that will get multiple shapes from nested array that have coordinates of each shape

I am currently trying to make a Javascript function that will iterate through an array that represents 1 or more shapes in a nested array and each of these nested arrays could have a variable number of coordinates to create these shapes. At the…
HannahR10
  • 31
  • 1
3
votes
0 answers

Android deep link nested activity back stack not working

I have a deep link into activity A in my app. From activity A, user can go to activity B. When user presses back button in activity B, I expect them to land back in activity A, the start of the deep link. But instead, users land back into location…
3
votes
2 answers

How to sort an array by element nesting?

I have an array of data, I need to make sure that the elements are sorted by nesting (parent, child) and follow each other in alphabetical order both at the top level and at the nested one. Initial data: const arr = [ { id: 0, name: 'A', …
Vladislav
  • 125
  • 6
3
votes
4 answers

Filtering a dictionary of dictionaries by a value

I have a small example of a nested dictionary (in my case a collections defaultdict): all_dict = {'d1': {'a': 2, 'b': 4, 'c': 10}, 'd2': {'a': 1, 'b': 23,'c': 0}, 'd3': {'a': 4, 'b': 12,'c': 4}, 'd4': {'a': 0,…
3
votes
0 answers

Partly flattening a nested XML in PySpark

Problem I can either flatten the XML file in total (with the functions below) or not at all. But how can I flatten it in part - with the twist that some values should be the column-name (_Name (col) and _VALUE (corresponding value))? Input df =…
Olly
  • 31
  • 3
3
votes
2 answers

How can I create objects of a nested class inside the parent class but in another header file?

I have a class Dmx with a nested class touchSlider. So before I had these classes in my main.cpp file and just created an object array of touchSlider within the Dmx class and it worked properly. How can I implement this here, with different header…
LastHerd
  • 65
  • 7
3
votes
4 answers

How to map a function to a triple nested list and keep the triple nested list intact?

I've have been building an analysis workflow for my PhD and have been using a triple nested list to represent my data structure because I want it to be able to expand to an arbitrary amount of data in its second and third levels. The first level is…
EmlynC
  • 90
  • 9