Skip to content

Instantly share code, notes, and snippets.

@ldunn
Created September 19, 2010 00:55
Show Gist options
  • Select an option

  • Save ldunn/586230 to your computer and use it in GitHub Desktop.

Select an option

Save ldunn/586230 to your computer and use it in GitHub Desktop.
let square x:float = x**2
let numbers = [1.0 .. 100.0]
let sum_squares = List.reduce (+) (List.map (square) numbers)
let square_sum = square (List.reduce (+) numbers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment