Skip to content

Instantly share code, notes, and snippets.

@markrendle
Created March 7, 2018 10:40
Embed
What would you like to do?
Lines of code
public static class Squares
{
public static int Square(int i) => i * i;
public static int SumOfSquares(int i) => Enumerable.Range(1, i).Select(Square).Sum();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment