Equilibrium index: Difference between revisions

Content added Content deleted
(→‎ES6 Functional: Tidied, updated primitives and output format.)
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";


// ---------------- EQUILIBRIUM INDEX ----------------
// ------------- ALL EQUILIBRIUM INDICES -------------


// equilibriumIndices :: [Int] -> [Int]
// equilibriumIndices :: [Int] -> [Int]