Skip to content

Instantly share code, notes, and snippets.

@motokiee
Created October 1, 2015 10:52
Show Gist options
  • Save motokiee/e0e4a6573a436a995384 to your computer and use it in GitHub Desktop.
Save motokiee/e0e4a6573a436a995384 to your computer and use it in GitHub Desktop.
calcBmis :: [(Double, Double)] -> [Double]
calcBmis xs = [ bmi | (w,h) <- xs, let bmi = w / h ^ 2, bmi > 30.0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment