Higher-order functions are functions which either take functions as arguments or return them as output (or both).
I'm trying to use ES6 arrow function with .filter to return adults (Jack & Jill). It appears I cannot use …
javascript ecmascript-6 higher-order-functionsFor example, I would like to create an array from the elements in this string: $str = 'red, green, blue ,orange'; …
php explode trim higher-order-functionsI have an array like this: array("a" => 2, "b" => 4, "c" => 2, "d" => 5, "e" => 6, "f" => 2) Now …
php arrays filter higher-order-functionsI have learned the basic difference between foldLeft and reduceLeft foldLeft: initial value has to be passed reduceLeft: takes first …
scala functional-programming fold higher-order-functionsHaskell (with the GHC compiler) is a lot faster than you'd expect. Used correctly, it can get close-ish to low-level …
performance haskell ghc higher-order-functions lambda-calculusHow would you flip 90 degrees (transpose) a multidimensional array in PHP? For example: // Start with this array $foo = array( 'a' =&…
php arrays higher-order-functionsI have an array of file names in Powershell, and I would like to prepend a path to each of …
powershell higher-order-functions array-mapThe basic array class has .map, .forEach, .filter, and .reduce, but .groupBy i noticably absent, preventing me from doing something …
arrays typescript grouping higher-order-functionsIs there a hash equivalent for map? my %new_hash = hash_map { new_key($a) => new_val($b) } %hash; …
perl hash higher-order-functionsSuppose I have the following list of tuples: val tuples = listOfStrings.map(string => { val split = string.split(":") (split(0), split(1), …
scala tuples higher-order-functions