Cope 2.5.0
My personal "standard library" of all the generally useful code I've written for various projects over the years
Loading...
Searching...
No Matches

◆ furthest()

int Cope.misc.furthest ( SupportsInt  target,
Iterable[SupportsInt]  compare,
  index = False 
)

Finds the value in compare that is furthest from target.

Returns the index (if index is True), or the value. If there are multiple furthest values in the list, it returns the first one Uses the - operator.

Definition at line 62 of file misc.py.