Created
June 15, 2011 04:00
-
-
Save rodrigovidal/1026448 to your computer and use it in GitHub Desktop.
Implementação de soma de uma lista em F#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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