Skip to content

Instantly share code, notes, and snippets.

@rodrigovidal
Created June 15, 2011 04:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rodrigovidal/1026448 to your computer and use it in GitHub Desktop.
Save rodrigovidal/1026448 to your computer and use it in GitHub Desktop.
Implementação de soma de uma lista em F#
let isMultipleOf3Or5 x = x % 3 = 0 || x % 5 = 0
let sumAllMultiplesOf3Or5 list = List.sum (List.filter isMultipleOf3Or5 list)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment