tagged [arrays]
Array containing Methods
Array containing Methods I was wondering if you can create an Array or a List that contains methods. I don't want to use a switch or lots of if statements. Thanks
Obtain smallest value from array in Javascript?
Obtain smallest value from array in Javascript? Array justPrices has values such as: How do I return the smallest value in the array?
- Modified
- 19 Jan at 23:51
Nullable Array Notation
Nullable Array Notation I am new to nullable. Is there a meaningful difference between the possible notations? `string?[] str` `string[]? str` and even `string?[]? str` seems to all be valid
- Modified
- 2 Jun at 19:16
Variable length (Dynamic) Arrays in Java
Variable length (Dynamic) Arrays in Java I was wondering how to initialise an integer array such that it's size and values change through out the execution of my program, any suggestions?
Python Array with String Indices
Python Array with String Indices Is it possible to use strings as indices in an array in python? For example:
- Modified
- 22 Sep at 02:14
How to convert List<List<int>> to an array of arrays
How to convert List> to an array of arrays What is the best way to convert a list into an array of type `int[][]`?
How to get an array of unique values from an array containing duplicates in JavaScript?
How to get an array of unique values from an array containing duplicates in JavaScript? Given a `['0','1','1','2','3','3','3']` array, the result should be `['0','1','2','3']`.
- Modified
- 4 Feb at 10:0
Declare and Initialize String Array in VBA
Declare and Initialize String Array in VBA This should work according to another stack overflow post but its not: Can anyone let me know what is wrong?
- Modified
- 14 Oct at 20:54
Preserving order with LINQ
Preserving order with LINQ I use LINQ to Objects instructions on an ordered array. Which operations shouldn't I do to be sure the order of the array is not changed?
- Modified
- 11 Aug at 17:41
Remove element of a regular array
Remove element of a regular array I have an array of Foo objects. How do I remove the second element of the array? I need something similar to `RemoveAt()` but for a regular array.
JavaScript push to array
JavaScript push to array How do I push new values to the following array? I tried `json.push("coolness":"34.33");`, but it didn't work.
- Modified
- 2 Mar at 21:10
Convert String to int array in java
Convert String to int array in java I have one string: ie `"[1,2]"` is like a single String. How do I convert this `arr` to int array in java?
Get file name from byte array or Stream
Get file name from byte array or Stream Is it possible to get filename from the byte array or stream? I wont to save the file. I just want to retrieve its name.
C# declare empty string array
C# declare empty string array I need to declare an empty string array and i'm using this code But I get "method name expected" error. What's wrong?
How to initialize an array in Kotlin with values?
How to initialize an array in Kotlin with values? In Java an array can be initialized such as: How does Kotlin's array initialization look like?
How do I remove duplicate items from an array in Perl?
How do I remove duplicate items from an array in Perl? I have an array in Perl: How do I remove the duplicates from the array?
- Modified
- 25 Dec at 19:57
Remove empty elements from an array in Javascript
Remove empty elements from an array in Javascript How do I remove empty elements from an array in JavaScript? Is there a straightforward way, or do I need to loop through it and remove them manually?
- Modified
- 24 Aug at 20:58
Best way to combine two or more byte arrays in C#
Best way to combine two or more byte arrays in C# I have 3 byte arrays in C# that I need to combine into one. What would be the most efficient method to complete this task?
Gets byte array from a ByteBuffer in java
Gets byte array from a ByteBuffer in java Is this the recommended way to get the bytes from the ByteBuffer
- Modified
- 27 Jan at 02:30
Fastest way to compare a string with an array of strings in C#2.0
Fastest way to compare a string with an array of strings in C#2.0 What is the fastest way to compare a string with an array of strings in C#2.0
- Modified
- 4 Jan at 10:47
Random shuffling of an array
Random shuffling of an array I need to randomly shuffle the following Array: Is there any function to do that?
Convert a list<int> to a joined string of ints?
Convert a list to a joined string of ints? I have an int array with the value 3,99,6. How do i convert the array into the string `3,99,6` with linq?
Empty elements in C# byte array
Empty elements in C# byte array Is there any method to empty an in ?