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
45
votes
11 answers

Nested jQuery.each() - continue/break

Consider the following code: var sentences = [ 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'Vivamus aliquet nisl quis velit ornare tempor.', 'Cras sit amet neque ante, eu ultrices est.', 'Integer…
Ryan Kinal
  • 17,414
  • 6
  • 46
  • 63
44
votes
5 answers

PHP foreach with Nested Array?

I have a nested array in which I want to display a subset of results. For example, on the array below I want to loop through all the values in nested array[1]. Array ( [0] => Array ( [0] => one [1] => Array ( [0]…
noangel
  • 543
  • 2
  • 6
  • 9
44
votes
4 answers

Java pattern for nested callbacks?

I'm looking for a Java pattern for making a nested sequence of non-blocking method calls. In my case, some client code needs to asynchronously invoke a service to perform some use case, and each step of that use case must itself be performed…
Andrew Swan
  • 13,427
  • 22
  • 69
  • 98
42
votes
7 answers

How can I pickle a dynamically created nested class in python?

I have a nested class: class WidgetType(object): class FloatType(object): pass class TextType(object): pass .. and an object that refers the nested class type (not an instance of it) like this class…
prinzdezibel
  • 11,029
  • 17
  • 55
  • 62
41
votes
3 answers

Enum within an enum

This isn't a matter of me being stuck, but rather I'm looking for a tidy way to write my code. Essentially, I'm writing an event driven application. The user triggers an event, the event gets sent to the appropriate objects, and the objects handle…
Fault
  • 1,239
  • 4
  • 14
  • 18
41
votes
6 answers

scipy.io.loadmat nested structures (i.e. dictionaries)

Using the given routines (how to load Matlab .mat files with scipy), I could not access deeper nested structures to recover them into dictionaries To present the problem I run into in more detail, I give the following toy example: load scipy.io as…
mergen
  • 1,081
  • 1
  • 9
  • 10
41
votes
9 answers

Turning a list into nested lists in python

Possible Duplicate: How can I turn a list into an array in python? How can I turn a list such as: data_list = [0,1,2,3,4,5,6,7,8] into a list of lists such as: new_list = [ [0,1,2] , [3,4,5] , [6,7,8] ] ie I want to group ordered elements in a…
Double AA
  • 5,759
  • 16
  • 44
  • 56
41
votes
2 answers

nested struct initialization literals

How can I do this: type A struct { MemberA string } type B struct { A A MemberB string } ... b := B { MemberA: "test1", MemberB: "test2", } fmt.Printf("%+v\n", b) Compiling that gives me: "unknown B field 'MemberA' in struct…
Brad Peabody
  • 10,917
  • 9
  • 44
  • 63
41
votes
3 answers

Why does field declaration with duplicated nested type in generic class results in huge source code increase?

Scenario is very rare, but quite simple: you define a generic class, then create a nested class which inherits from outer class and define a associative field (of self type) within nested. Code snippet is simpler, than description: class Outer { …
Ilya Ivanov
  • 23,148
  • 4
  • 64
  • 90
40
votes
3 answers

How to steal touches from UIScrollView?

Today on my creative time I did some quite comprehensive research on how to steal touches from a UIScrollView and send them instantly to a specific subview, while maintaining the default behavior for the rest of the scroll view. Consider having a…
Erik B
  • 40,889
  • 25
  • 119
  • 135
39
votes
2 answers

GoogleFinance often returns #N/A and internal error messages while getting stock quotes

Anyone know workarounds to make GoogleFinance actually work? It works for a while so it is not a problem with my formulas but then periodically the cells that were showing stock quotes suddenly show "#N/A" and if you hover over them it shows that…
stackonfire
  • 1,525
  • 4
  • 17
  • 23
39
votes
5 answers

Can a static nested class be instantiated in Java?

From Oracle's Java tutorials I've found this text: As with class methods and variables, a static nested class is associated with its outer class. And like static class methods, a static nested class cannot refer directly to instance variables or…
user1031431
  • 1,475
  • 6
  • 17
  • 24
39
votes
3 answers

Nested dictionary comprehension python

I'm having trouble understanding nested dictionary comprehensions in Python 3. The result I'm getting from the example below outputs the correct structure without error, but only includes one of the inner key: value pairs. I haven't found an…
38
votes
3 answers

WPF: How to bind to a nested property?

I can bind to a property, but not a property within another property. Why not? e.g. ...
Qwertie
  • 16,354
  • 20
  • 105
  • 148
38
votes
2 answers

How do I setup nested views in AngularJS?

I have an application with various screens. Each screen is assigned a URL, such as #, mails, contacts, and so on. In my main HTML file I have an ng-view element which updates according to the route the user selects. So far, so good. Now some of…
Golo Roden
  • 140,679
  • 96
  • 298
  • 425