Skip to content

Instantly share code, notes, and snippets.

@rodrigovidal
Created June 15, 2011 04:01
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/1026449 to your computer and use it in GitHub Desktop.
Save rodrigovidal/1026449 to your computer and use it in GitHub Desktop.
Soma de uma lista usando Pipe-Forward F#
let isMultipleOf3Or5 x = x % 3 = 0 || x % 5 = 0
let sumAllMultiplesOf3Or5Ref list =
list |> List.filter isMultipleOf3Or5
|> List.sum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment