rargmax

PlasmaCalcs.tools.iterables.rargmax(iterable)

returns first occurence of maximum value in iterable, starting search from the end.

converts iterable to tuple before beginning search.
[EFF] might not be efficient for large iterables, but it’s probably fine.