Equilibrium index: Difference between revisions

(→‎{{header|Quackery}}: tweaked code)
Line 2,423:
=={{header|Quackery}}==
 
<syntaxhighlight lang="Quackery"> [ ' [] 0 ] swaprot
witheach
[ over+ -1dup peek +dip join ]
behead drop ] is cumsum ( [ --> [ )
 
[ [] swap dupover cumsum
swaprot reverse cumsum
reverse witheach
[ dipover beheadi peek = if
[ dip [ i^ rot join ] ] ]
drop ] swap ] is equilibria ( --> [ )]
drop ] is equilibria ( --> [ )
 
' [ -7 1 5 2 -4 3 0 ] equilibria echo</syntaxhighlight>
</syntaxhighlight>
 
{{out}}
1,462

edits