The Equilibrium Index

For arrays of numbers, an equilibrium index (if one exists…) is the place in the array where the sum of the elements before that point is equal to the sum of the elements after it.