Skip to content

Instantly share code, notes, and snippets.

@iskandr
Created January 30, 2013 17:07
Show Gist options
  • Select an option

  • Save iskandr/4674729 to your computer and use it in GitHub Desktop.

Select an option

Save iskandr/4674729 to your computer and use it in GitHub Desktop.
@parakeet.jit
def count_thresh(values, thresh):
n = 0
for elt in values:
n += elt < thresh
return n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment