About 9,770,000 results
Open links in new tab
  1. How to create an array containing 1...N

    We'll use that fact later. Array.apply(null, [undefined, undefined, undefined]) is equivalent to Array(undefined, undefined, undefined), which produces a three-element array and assigns …

  2. A confusion about ${array[*]} versus ${array[@]} in the context of a ...

    The difference between [@] and [*] -expanded arrays in double-quotes is that "${myarray[@]}" leads to each element of the array being treated as a separate shell-word, while …

  3. How do I declare and initialize an array in Java? - Stack Overflow

    Jul 29, 2009 · The third way of initializing is useful when you declare an array first and then initialize it, pass an array as a function argument, or return an array. The explicit type is required.

  4. How do I declare an array in Python? - Stack Overflow

    Aug 23, 2022 · The array structure has stricter rules than a list or np.array, and this can reduce errors and make debugging easier, especially when working with numerical data.

  5. How can I convert a Java 8 Stream to an Array? - Stack Overflow

    Apr 15, 2014 · What is the easiest/shortest way to convert a Java 8 Stream into an array?

  6. syntax - C++ array initialization - Stack Overflow

    Dec 17, 2009 · T myArray[ARRAY_SIZE] = {}; i.e. just an empty pair of {}. This will default-initialize an array of any type (assuming the elements allow default initialization), which means …

  7. How do I determine the size of my array in C? - Stack Overflow

    Sep 1, 2008 · An array sent as a parameter to a function is treated as a pointer, so sizeof will return the pointer's size, instead of the array's. Thus, inside functions this method does not …

  8. How to pass an array within a query string? - Stack Overflow

    Is there a standard way of passing an array through a query string? To be clear, I have a query string with multiple values, one of which would be an array value. I want that query string value …

  9. Array<Type> VS Type[] in Typescript - Stack Overflow

    Apr 25, 2016 · Fixed size array would look like const arr = new Array<number>(3);, though technically it will not be fixed ofc The "fixed length arrays" are an entirely different feature. So, …

  10. Remove duplicate values from a JavaScript array - Stack Overflow

    If you want to remove objects from an array that have exactly the same properties and values as other objects in the array, you would need to write a custom equality checking function to …