Equilibrium index: Difference between revisions
Content added Content deleted
(→ES6 Functional: Tidied, updated primitives and output format.) |
m (→ES6 Functional) |
||
Line 1,398: | Line 1,398: | ||
===ES6 Functional=== |
===ES6 Functional=== |
||
A composition of pure generic functions, returning all equilibrium indices. |
A composition of pure generic functions, returning '''all''' equilibrium indices. |
||
<lang javascript>(() => { |
<lang javascript>(() => { |
||
"use strict"; |
"use strict"; |
||
// |
// ------------- ALL EQUILIBRIUM INDICES ------------- |
||
// equilibriumIndices :: [Int] -> [Int] |
// equilibriumIndices :: [Int] -> [Int] |