欧洲杯买球

How are we doing? Please help us improve Stack Overflow. Take our short survey

Questions tagged [arrays]

An array is an ordered data structure consisting of a collection of elements (values, variables or references), each identified by one or more indexes. When asking about specific variants of arrays, use these related tags instead: [vector], [arraylist], [matrix]. When using this tag, in a question which is specific to a programming language, tag the question with the programming language being used.

Filter by
Sorted by
Tagged with
-3
votes
0answers
26 views

I want to know the value of status in this code [duplicate]

CI_Session Object ( [userdata] => Array ( [__ci_last_regenerate] => 1579697789 [FBRLH_state] => 5c41d112e8e69fe671f87a79827e55fa [...
0
votes
0answers
7 views

How do I access nested array within a cell in a parquet table using spark and python?

I want to pull the 'text' in the sentiment column in my table and filter it by city = london. I have a table that looks like this: name city sentiment harry london "[ ...
0
votes
1answer
17 views

Problem with ship overlapping in 2D-arrays for Battleships game, Java

I am creating a simple console-based Battleships in Java, for people who is unfamiliar with the game, it's played on a 2D-grid where you can put down different sized ships either horizontally or ...
0
votes
0answers
15 views

2D Array Of Signals with generic in VHDL - Array of Unconstrained Array

Is it posible to make array of unconstrained array in vhdl? I am using SimVision 18.03-s001. This is how I declare signal type in vhdl: type t_data_bus_array is array(natural range<>) of ...
1
vote
1answer
37 views

How to Add new data to a array list via intents

In my app you can create a work project, you add client name, budget etc. for UI purposes a staff member addition is on a seprate activity Now My problem is that I pass the data in a Array between ...
1
vote
1answer
25 views

List of Array of objects to map in java 8

I have a class Person with constructor Person(Fruit... favoriteFruits) {} And 3 objects (let's say) Person A = new Person(Apple); Person B = new Person(Banana, Papaya); Person C = new Person(...
2
votes
0answers
13 views

Loading array into sklearn.linear_model

I'm trying to load an array, x, into a regression (reg = linear_model.LinearRegression()) so that I run the prediction function multiple times. However, whenever I try to load the array using the ...
1
vote
8answers
55 views

JavaScript Object to Array of Objects with 'name' key

Here my initial object : partners { 0: "Proxy" 2: "Skate" 8: "Air" } I want to have this : partners [ 0:{name: "Proxy"} 1:{name: "Skate"} 2:{name: "Air"} ] I tried this without success ...
-2
votes
7answers
44 views

Transform javascript array of object in object with keys

Here what I have : const datas = [ {id: '/chiens', content: ['waf1','waf2']}, {id: '/chats', content: ['miaou1','miaou2']}, {id: '/oiseaux', content: ['cui1','cui2']} ] Here what I want : ...
-4
votes
2answers
80 views

Most efficient way to check if Array contains more than one condition in same row [closed]

Let's say we have an array of objects with properties A and B like this: var arr = []; arr.push({ A: "Hello", B: "World" }); arr.push({ A: "Testing", B: "Array" }); We want to add a new row, but we ...
-4
votes
2answers
49 views

Get single value from a php array on a website [closed]

I have 2 php arrays on an external site . The php arrays are below { "LIVETV": { "token": { "wmsAuthSignText": "Success", "wmsAuthSign": "token1", "...
0
votes
0answers
21 views

How to select just one element in GridView with multiples array?

I´ve got 3 arrays. If I pick on letter "G" for example, I want just to select letter "G" container. Instead it select me all array[index]. How can I just select one Container? var array1 = ["A", "B"...
0
votes
1answer
21 views

must be real number, not NoneType

Im just messing around in python since im learning at the moment. Im checking the NIST randomness beacon, and im parsing for the output, removing all letters and using it as a seed to generate random ...
0
votes
1answer
14 views

Return array from tuple

I am trying to return two arrays from 1 tuple at once. I have a (large) iteration def iteration_newton(...., ....,) with at the end of the iteration return x_save, V Where x_save is a matrix of ...
0
votes
5answers
47 views

Split a JS string then group its values into an object

So I've got the following string let x = "4 months 3 weeks 1 day". This can also be a simple let x = "2 weeks". What I'm trying to do is to split this x by space and then group the returned values in ...

15 30 50 per page