aboutsummaryrefslogtreecommitdiff
path: root/2022/day-06/day-06.rkt
diff options
context:
space:
mode:
authorHunky Jimpjorps <thechairman@thechairman.info>2022-12-08 09:08:59 -0500
committerHunky Jimpjorps <thechairman@thechairman.info>2022-12-08 09:08:59 -0500
commit7cbae6c649ab735070d05badcf6d29cc1b7607c4 (patch)
treee14c68af9246be78560823e9c26f027ec2c48754 /2022/day-06/day-06.rkt
parent6e9435ded904c0afcf93f3f324f58e76c214fe0f (diff)
parent0e12a59e64a6f95c2448cc5ddec96984d6111613 (diff)
downloadgleam_aoc-7cbae6c649ab735070d05badcf6d29cc1b7607c4.tar.gz
gleam_aoc-7cbae6c649ab735070d05badcf6d29cc1b7607c4.zip
Merge branch 'main' of https://github.com/hunkyjimpjorps/AdventOfCode into main
Diffstat (limited to '2022/day-06/day-06.rkt')
-rw-r--r--2022/day-06/day-06.rkt3
1 files changed, 1 insertions, 2 deletions
diff --git a/2022/day-06/day-06.rkt b/2022/day-06/day-06.rkt
index 89b8075..1c167a6 100644
--- a/2022/day-06/day-06.rkt
+++ b/2022/day-06/day-06.rkt
@@ -1,7 +1,6 @@
#lang racket
(require advent-of-code
- (only-in relation ->list ->set)
(only-in algorithms sliding))
(define buffer (fetch-aoc-input (find-session) 2022 6))
@@ -11,7 +10,7 @@
(case type
[(start-of-packet) 4]
[(start-of-message) 14]))
- (for/first ([chunk (in-list (sliding (->list data) n))]
+ (for/first ([chunk (in-list (sliding (string->list data) n))]
[i (in-naturals n)]
#:unless (check-duplicates chunk))
i))