summaryrefslogtreecommitdiff
path: root/aoc
diff options
context:
space:
mode:
authorMike Vink <mike1994vink@gmail.com>2023-02-26 18:58:04 +0100
committerMike Vink <mike1994vink@gmail.com>2023-02-26 18:58:04 +0100
commitdd496570e3ebaedb37d713d8113fecac2b92b482 (patch)
tree03d5c1a646d75ddbf9aac80277ea828f6d0c58dd /aoc
parent92e0fe693cdca3b15fb3c0e9b97738fdac0df8ba (diff)
fixup
Diffstat (limited to 'aoc')
-rw-r--r--aoc/day.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/aoc/day.go b/aoc/day.go
index 1258e46..b47607b 100644
--- a/aoc/day.go
+++ b/aoc/day.go
@@ -25,9 +25,9 @@ func NewScanCloser(file string) *ScanCloser {
}
}
-type Solver[T any, R any] func(ctx context.Context, data T) (R, error)
+type Solvers[T any, R any] []func(ctx context.Context, data T) (R, error)
-func RunDay[T any, R any](ctx context.Context, s *ScanCloser, in Reader[T], solvers ...Solver[T, R]) error {
+func RunDay[T any, R any](ctx context.Context, s *ScanCloser, in Reader[T], solvers Solvers[T, R]) error {
defer s.Closer.Close()
data, err := in(ctx, s.Scanner)