From: Grégory Burri Date: Fri, 1 Dec 2017 11:57:44 +0000 (+0100) Subject: Cleaning X-Git-Url: https://git.euphorik.ch/?a=commitdiff_plain;h=914ccef7b34927fdfb1f0a517325dccfd12ccaf2;p=advent_of_code_2017.git Cleaning --- diff --git a/AdventOfCode2017/Day1.fs b/AdventOfCode2017/Day1.fs index 005fd22..1dfea78 100644 --- a/AdventOfCode2017/Day1.fs +++ b/AdventOfCode2017/Day1.fs @@ -1,6 +1,6 @@ module AdventOfCode2017.Day1 -let readDigit d = int d - 48 +let readDigit d = int d - int '0' let solveCaptchaPart1 (captcha : string) = let numbers = captcha.ToCharArray () |> List.ofArray |> List.map readDigit