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
32
votes
1 answer

How to query nested arrays in a postgres json column?

I have some json similar to the json below stored in a postgres json column. I'm trying query it to identify some incorrectly entered data. I'm basically looking for addresses where the house description is the same as the house number. I can't…
spannerj
  • 648
  • 1
  • 6
  • 11
32
votes
7 answers

Is it possible for C preprocessor macros to contain preprocessor directives?

I would like to do the equivalent of the following: #define print_max(TYPE) \ # ifdef TYPE##_MAX \ printf("%lld\n", TYPE##_MAX); \ # endif print_max(INT); Now the #ifdef or any nested preprocessor directive is not allowed as far as I can…
pixelbeat
  • 30,615
  • 9
  • 51
  • 60
30
votes
1 answer

In an Editor Template call another Editor Template with the same Model

I have an editor template and within that editor template i want to call another editor template with the same model (i.e. nested), but it does not seem to display. ie. \EditorTemplates\Template1.cshtml @model foo // insert code here to edit the…
tkerwood
  • 1,875
  • 16
  • 26
30
votes
2 answers

how to put nested case-when condition in postgresql query

i want to write nested case when condition in query to store the value that will come from one case when condition and another case when condition into same new column.to get this kind of result i am writing the query as: (case when sq_name_new1…
shyarry g
  • 345
  • 1
  • 3
  • 8
30
votes
3 answers

Core Data: Do child contexts ever get permanent objectIDs for newly inserted objects?

I have an app with two managed object contexts setup like this: Parent Context: NSPrivateQueueConcurrencyType, linked to the persistent store. Main Context: NSMainQueueConcurrencyType, child of Parent Context. When insert a new managed object to…
Jorge
  • 2,530
  • 1
  • 19
  • 28
29
votes
3 answers

Passing An ObservedObject To Nested Child Views SwiftUI (SwiftUI Data Flow)

I'm trying to understand why passing an @ObservedObject variable does not work for nested child views. The data is able to be passed but the changes only reflects at the root view where the @ObservedObject variable was created. The changes don't…
Richard Witherspoon
  • 4,082
  • 3
  • 17
  • 33
29
votes
6 answers

Nested batch for loops

The following nested for-loop drives me mad (on Windows 7): @echo off SetLocal EnableDelayedExpansion set TESTDIRS=fast mid slow set TD=src\test\resources\testsuite for %%d in (%TESTDIRS%) do ( set CTD=%TD%\%%d echo CTD: !CTD! REM…
Malte Schwerhoff
  • 12,684
  • 4
  • 41
  • 71
29
votes
3 answers

Nested mixins or functions in SASS

Some body know how can i use nested mixins or functions in SASS? I have something like this: @mixin A(){ do something.... } @mixin B($argu){ @include A(); }
iLevi
  • 936
  • 4
  • 10
  • 26
29
votes
4 answers

How can I match nested brackets using regex?

As the title says, here is an example input: (outer (center (inner) (inner) center) ouer) (outer (inner) ouer) (outer ouer) Of course, the matched strings will be processed by recursion. I want the first recursion to…
gordomium
  • 313
  • 1
  • 3
  • 7
29
votes
2 answers

JavaFX Nested Controllers (FXML )

In this tutorial, there is an example of how to include custom components and use their controllers from the controller of the container. main_window_content.fxml
Antonello
  • 321
  • 1
  • 3
  • 5
28
votes
5 answers

android nested listview

is it possible/advisable to have a nested listview? i.e. a listView that's contained within a row of another listview? an example would be where my main list is displaying blog posts, and then in each row, you'd have another list view for the…
Ben
  • 16,124
  • 22
  • 77
  • 122
28
votes
6 answers

How to get nested dictionary key value with .get()

With a simple dictionary like: myDict = {'key1':1, 'key2':2} I can safely use: print myDict.get('key3') and even while 'key3' is not existent no errors will be thrown since .get() still returns None. Now how would I achieve the same simplicity…
alphanumeric
  • 17,967
  • 64
  • 244
  • 392
28
votes
2 answers

How to use enum with grouping and subgrouping hierarchy/nesting

I have one enum 'class' called Example as follows: enum Example { //enums belonging to group A: enumA1, enumA2, enumA3, //enums belonging to group B: enumB1, enumB2, enumB3, //enums belonging to group C: enumC1, enumC2, …
user2763361
  • 3,789
  • 11
  • 45
  • 81
28
votes
6 answers

Sort nested array of objects

I'm looking for a way to sort a nested array of objects. Here's an example: { answers : [ { name : 'paul', state : 'RU' }, { name : 'steve', state : 'US' }, { name : 'mike', state : 'DE' }, ... ] } Suppose now I want to find…
Kaylit
  • 281
  • 1
  • 3
  • 4
28
votes
2 answers

In Java, can anonymous classes extend another class?

Code like: protected Interface1 varClass1 = new Interface1() { But I would also like that this anonymous nested class also extends the class Base, something like: protected Interface1 varClass1 = new Interface1() extends Base { .... Is this…
user810430
  • 11,181
  • 15
  • 38
  • 43