Skip to content

Instantly share code, notes, and snippets.

@avegancafe
Created February 3, 2015 00:19
Show Gist options
  • Select an option

  • Save avegancafe/dc8eabd8a1604cb54ecb to your computer and use it in GitHub Desktop.

Select an option

Save avegancafe/dc8eabd8a1604cb54ecb to your computer and use it in GitHub Desktop.
A python implementation for finding the minimum of a list.
def min(l):
cur = float('-inf')
for el in l:
if el < cur:
cur = el
return cur
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment