summaryrefslogtreecommitdiff
path: root/aoc
diff options
context:
space:
mode:
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)