aboutsummaryrefslogtreecommitdiff
path: root/aoc-2022-dotnet/Day06/Program.fs
diff options
context:
space:
mode:
Diffstat (limited to 'aoc-2022-dotnet/Day06/Program.fs')
-rw-r--r--aoc-2022-dotnet/Day06/Program.fs3
1 files changed, 2 insertions, 1 deletions
diff --git a/aoc-2022-dotnet/Day06/Program.fs b/aoc-2022-dotnet/Day06/Program.fs
index c9f6568..78902cd 100644
--- a/aoc-2022-dotnet/Day06/Program.fs
+++ b/aoc-2022-dotnet/Day06/Program.fs
@@ -1,10 +1,11 @@
module Day06
open System.IO
+open Common
let solution n =
Seq.windowed n
- >> Seq.findIndex (Set >> Set.count >> (=) n)
+ >> Seq.findIndex (Util.countDistinct >> (=) n)
>> (+) n
assert