Skip to content

Instantly share code, notes, and snippets.

@abdulsattar
Created July 6, 2011 10:27
Show Gist options
  • Save abdulsattar/1066966 to your computer and use it in GitHub Desktop.
Save abdulsattar/1066966 to your computer and use it in GitHub Desktop.
F# Tutorials
public int SumOfSquares()
{
int sum=0;
for(int i=1; i<=100; i++)
sum += i;
return sum;
}
let square x = x * x
[1..100] |> List.map square |> List.sum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment