more concise ReadInts()

This commit is contained in:
Colin McMillen 2020-12-01 13:08:02 -05:00
parent 4071a75516
commit d4f34eb07c

View File

@ -14,7 +14,7 @@ namespace AdventOfCode {
static List<int> 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<int> numbers) {