All Questions
Tagged with array-of-dict or arrays
418,173 questions
-1 votes
0 answers
18 views
How to prevent the reuse of same card component instance react-native-deck-swiper?
What can be done to prevent the react-native-deck-swiper module from reusing the same card component instance when moving to the next card? Meaning: It does not unmount the previous card instead, it ...
1 vote
1 answer
32 views
What is the correct NumPy representation of a row vector for gradients
I am doing an assignment on matrices and gradients, where the final answer must be expressed as a row vector. vr = np.array([1, 2, 3]) vrr = np.array([[1, 2, 3]]) Mathematically, a row vector should ...
Advice
0 votes
1 replies
57 views
How to recursive loop json with relationship and convert to object?
I have this json data which I need to convert into an object. The json has a parent/child relationship instead of actual children object in the parent object. { "queryType": "tree&...
0 votes
2 answers
91 views
Parse JSON object in SQL with list
I have a table with data structured like this. Each product ID has a list of element IDs--for each element, there is a dictionary including a list of elements and their assigned IDs. Not every element ...
Best practices
0 votes
5 replies
86 views
Option Array, locating and returning array with correct criteria
I have an object db that has one field containing SKU's that correspond to another object that contains different venues. db.SKU = [1002,1005,1001,1008,1007]; I then have another object listing the ...
Advice
0 votes
1 replies
45 views
How can I achieve the same search behaviour as in iOS 26 Wallet app?
So in iOS 26, the search field changed a bit where it can be at the bottom. While other apps have the search in the nav bar, wallet has it in the toolbar, so when it's pressed it changes to a ...
4 votes
2 answers
73 views
Set a limit/cap on how many children can be appended with appendChild()?
I have a search function on my site that takes a text input and searches "documents" for a matching string of text, then displays the matching items in a list. This works perfectly. I just ...
-8 votes
0 answers
111 views
I need to create an array that contains the values of the attributes of an object, but Object.values(obj) does not work [closed]
I need to create an arraylist, that contains an array of objects to act as the rows of a table, like this: ArrayList<Object[]> rows = new ArrayList<>(); each of these Object[] arrays will ...
0 votes
1 answer
82 views
CKQueryOperation parse Array from public database [closed]
The operation: operation.recordMatchedBlock = {recordID, result in switch result { case .success(let record): print("RecordID: \(recordID), record: \(record)") let ...
1 vote
1 answer
52 views
Copy and paste with .getValues / .setValues, but clearing the array inbetween
I have a table which looks like this: I want to copy the first two columns of data and insert them before the EOF, but empty them before the paste. The end result should look like this: So far, my ...
-7 votes
0 answers
119 views
Array of pointer to objects [closed]
I'm using C#. I have a certain number of Newtonsoft.Json.Linq.JArray, let's say A1, A2, A3, and so on. I need to create an array or something similar of this objects in a way that, if I do something ...
1 vote
0 answers
67 views
Inserting into text array column when using unnest() [duplicate]
I have a table with the follow definition: CREATE TABLE "test" ( id UUID PRIMARY KEY, created TIMESTAMPTZ NOT NULL, description TEXT, permissions TEXT[] ); I want to bulk ...
5 votes
0 answers
200 views
Why is my user-defined contiguous 2D array not dramatically faster than std::vector<std::vector<>>?
I implemented a simple 2D array wrapper using a single contiguous std::vector and, benchmarked it against std::vector<std::vector<>>. Surprisingly, array2d is just slightly faster! #...
0 votes
1 answer
103 views
How to remove duplicate rows based on array column subset relationship?
I have a DolphinDB table with an array vector column. I need to remove duplicate rows based on subset relationships within that column. Sample Input: sym prices a [3,4,5,6] a [3,4,5] a [2,4,5,6] a [5,...
1 vote
1 answer
81 views
Pre-Selecting Values for a MultiDatePicker
Premise I have a MultiDatePicker bounded to a closed range of the current month. In addition, I have a datePicker representing a "Start Date" that is the current day. I want the Day of the ...