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
3 answers

Extract set of leaf values found in nested dicts and lists excluding None

I have a nested structure read from YAML which is composed of nested lists and/or nested dicts or a mix of both at various levels of nesting. It can be assumed that the structure doesn't contain any recursive objects. How do I extract from it the…
Asclepius
  • 57,944
  • 17
  • 167
  • 143
3
votes
1 answer

Access dynamic nested key in JS object

I have an array like ['animals', 'cats', 'cute', 'fast', 'small', ...], and want to access nested keys of the object like let object = { one: { two: { three: { // and so on } } } } Usually I would write…
Max Mikhalchuk
  • 85
  • 1
  • 2
  • 11
3
votes
1 answer

Remove nested array in nested foreach PHP

I have a problem in presenting data from a database using nested foreach. in the code that I worked on, I almost managed to provide data output from the transaction database as I expected in the form of a multidimensional array which in the second…
M K Wiro
  • 75
  • 6
3
votes
1 answer

sql nested "sum (case when) or" select query

I have a select query where I am trying to sum a value based on multiple criteria, grouped by dimension. The output will be the sum of the time greater than 30, 90, or 365 days based on the category, grouped by category. I can't crack the syntax for…
3
votes
2 answers

Applying Julia function to nested array of arrays

Is there a simpler way to do apply a function in Julia to nested array than defining a new function? - e.g. for this simple example: a = collect(1:10) b = [ a*i for i in 100:100:400] arraylog(x) = log.(x) ## Need to define an extra function to do…
MR_MPI-BGC
  • 265
  • 3
  • 11
3
votes
2 answers

Recursive Nested Lists

I'm having trouble getting my head around a problem on recursive nested lists. The problem; need to define a procedure to access a nested list to an arbitrary depth. It would take an nested list and an index, and return the part of the list at that…
Benji
  • 591
  • 1
  • 4
  • 11
3
votes
2 answers

ExtJS 4.0 Row Expander

Are there any known issues with the ExtJS RowExpander plugin when running under ExtJS 4.0? I've been getting errors about createDelegate not being a function. Was this removed in Ext 4.0? Are there any better alternatives for doing nested grids in…
tjp
  • 61
  • 6
3
votes
2 answers

How can I transform a list of tuples into a pandas dataframe so that the first value of each tuple represents a column?

I would like to transform my list of tuples so that the first element of each tuple represents 2 different columns. The second element of each tuple should represent the values that correspond to the columns in the pandas df. My current list of…
blah
  • 674
  • 3
  • 17
3
votes
2 answers

Replace nested string with some rules

There are 3 rules in the string: It contains either word or group (enclosed by parentheses), and group can be nested; If there is a space between word or group, those words or groups should append with "+". For example: "a b" needs to be "+a…
Ray Chen
  • 99
  • 6
3
votes
2 answers

How can I transform a list of nested dictionaries into a pandas dataframe?

The list to convert to a df: final_list = [{'ID1':{'word':'4', 'talk': '4}}, {'ID2': {'cat':'3', 'dog': '3'}}, {'ID3': {'potatoes':'8', 'height': '6'}}] Intended output Word Number Category 0 word 4 ID1 1 talk …
blah
  • 674
  • 3
  • 17
3
votes
4 answers

Is it a good 'idea' to prevent nested promise with async / await?

I have some difficulties with a nested promise (below). For now I'm using an async function in the catch to trigger authentication Errors. But is it really a good way and isn't there a better way ? The function have to send a POST request. If an…
Firlfire
  • 413
  • 1
  • 6
  • 14
3
votes
4 answers

Java: Deserializing JSON structure to Map

I've got a JSON string that I want to convert to a Map structure where Object is either a Java version of a basic type (i.e. String, Int, Double), a Map. or a List. The sample string I'm using for my tests…
niklassaers
  • 8,480
  • 20
  • 99
  • 146
3
votes
3 answers

Summing values within a nested map based on a key that's outside of the inner map

import java.util.*; public class Orders { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); Map> myMap = new LinkedHashMap>(); …
DolceVita34
  • 115
  • 1
  • 1
  • 6
3
votes
3 answers

Replacing nested list using a vector of names of depths as an index

Take a simple nested list L: L <- list(lev1 = list(lev2 = c("bit1","bit2")), other=list(yep=1)) L #$lev1 #$lev1$lev2 #[1] "bit1" "bit2" # # #$other #$other$yep #[1] 1 And a vector giving a series of depths for each part I want to select from…
thelatemail
  • 91,185
  • 12
  • 128
  • 188
3
votes
2 answers

RadioButtonList inside UpdatePanel inside Repeater, Can I?

I have a repeater with a RadioButtonList inside the ItemTemplate, but when the RadioButtonList.OnSelectedIndexChanged event fires it generates a full postback. What have I done wrong in my code below? How can I get the OnSelectedIndexChanged to…
Leigh
  • 1,495
  • 2
  • 20
  • 42
1 2 3
99
100