About 59 results
Open links in new tab
  1. How to flatten nested array in javascript? - Stack Overflow

    Dec 3, 2014 · Conclusion: To flatten an arbitrarily nested array in a functional way we just need a one-liner: const flatten = f => traverse(f) (concat) ([]);. All other involved functions are generic and have a …

  2. correct and efficient way to flatten array in numpy in python?

    How are we doing? Take our short survey correct and efficient way to flatten array in numpy in python? [duplicate] Ask Question Asked 14 years, 2 months ago Modified 10 years, 11 months ago

  3. python - Flatten numpy array - Stack Overflow

    Jul 6, 2012 · The example is already as flat as it can be (b.shape = (3,))! What exactly do you mean by flatten?

  4. python - Flattening a list of NumPy arrays? - Stack Overflow

    Nov 15, 2015 · Here flatten demonstrates piecewise linear complexity which can be reasonably explained by it making a copy of the initial array compare to constant complexities of ravel and …

  5. python - Flatten an irregular (arbitrarily nested) list of lists ...

    Feb 27, 2015 · Yes, I know this subject has been covered before: Python idiom to chain (flatten) an infinite iterable of finite iterables? Flattening a shallow list in Python Comprehension for flattening a …

  6. How to flatten only some dimensions of a numpy array

    Sep 12, 2013 · Is there a quick way to "sub-flatten" or flatten only some of the first dimensions in a numpy array? For example, given a numpy array of dimensions (50,100,25), the resultant …

  7. How does the list comprehension to flatten a python list work?

    Sep 5, 2014 · Note, of course, that the sort of comprehension will only "flatten" a list of lists (or list of other iterables). Also if you pass it a list of strings you'll "flatten" it into a list of characters.

  8. How to flatten nested objects with linq expression

    Jun 21, 2011 · How to flatten nested objects with linq expression Ask Question Asked 14 years, 10 months ago Modified 10 years, 2 months ago

  9. javascript - Merge/flatten an array of arrays - Stack Overflow

    Extremely useful if you have to flatten an array inside of an array, since using apply would presume you are passing in an array of parameters. Only bummer is if you have arrays inside your array that are …

  10. How to 'Flatten' in Adobe Acrobat Pro DC

    Apr 28, 2025 · We recently purchased Adobe Acrobat Pro DC and I'm trying to figure out how to take a document that I added a stamp to and flatten it so our users cannot delete the stamp from it. I have …