About 54 results
Open links in new tab
  1. What does the Array method `reduce` do? - Stack Overflow

    Reduce function does not reduce anything. Reduce is the function to take all the elements of an array and come out with a single value out of an array.

  2. Using reduce() to find min and max values? - Stack Overflow

    I have this code for a class where I'm supposed to use the reduce() method to find the min and max values in an array. However, we are required to use only a single call to reduce. The …

  3. c# - Map and Reduce in .NET - Stack Overflow

    Jan 9, 2009 · What scenarios would warrant the use of the "Map and Reduce" algorithm? Is there a .NET implementation of this algorithm?

  4. TypeScript and array reduce function - Stack Overflow

    Dec 30, 2012 · It's actually the JavaScript array reduce function rather than being something specific to TypeScript. As described in the docs: Apply a function against an accumulator and …

  5. Main difference between map and reduce - Stack Overflow

    Apr 20, 2018 · This answer is divided in 3 parts: Defining and deciding between map and reduce (7 minutes) Using reduce intentionally (8 minutes) Bridging map and reduce with transducers …

  6. Numpy `logical_or` for more than two arguments - Stack Overflow

    Dec 11, 2013 · For example fn2args_reduce(lambda a,b: a+b, 1,2,3,4,5) gives you 15 - sum of these numbers (of course you have a much more efficient sum function for this, but I like it).

  7. How to call reduce on an array of objects to sum their properties?

    Sure reduce takes in a function to perform operations on each of the elements in an array. Every time it returns a value that is used as the next 'a' variable in the operation.

  8. Using the reduce function to return an array - Stack Overflow

    Feb 16, 2016 · The reduce () method applies a function against an accumulator and each value of the array (from left-to-right) to reduce it to a single value. (Emphasis mine) So you see, …

  9. How can I reduce the waiting (ttfb) time - Stack Overflow

    Feb 18, 2015 · This byte is the start of the response headers. For example, if the server sends the headers before doing the hard work (like heavy SQL), you will get a very low TTFB, but it isn't …

  10. how to reduce cpu usage of ffmpeg? - Stack Overflow

    how to reduce cpu usage of ffmpeg? Asked 8 years, 8 months ago Modified 5 years, 6 months ago Viewed 58k times