From d4f34eb07c1e0197c9049aa4728386c67b9d3756 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Tue, 1 Dec 2020 13:08:02 -0500 Subject: [PATCH] more concise ReadInts() --- 2020/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2020/Program.cs b/2020/Program.cs index ea320e1..7656400 100644 --- a/2020/Program.cs +++ b/2020/Program.cs @@ -14,7 +14,7 @@ namespace AdventOfCode { static List ReadInts(string filename) { string[] lines = File.ReadAllLines(filename); - return lines.Select(s => int.Parse(s)).ToList(); + return lines.Select(int.Parse).ToList(); } static int Day1Part1(List numbers) {