Skip to content

Commit

Permalink
feat(2024): day6 part 2 slight optimization using Array.Parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
vipentti committed Dec 6, 2024
1 parent 79c9677 commit 7097b92
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions visp/examples/aoc2024/day6.visp
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@
(let start (FindStart parsedInput))
(let tests (->> (FindVisited parsedInput) (Set.remove start)))
(->> tests
(Seq.filter #(RunScenario start %1 parsedInput))
(Seq.length)))
(Array.ofSeq)
(Array.Parallel.filter #(RunScenario start %1 parsedInput))
(Array.length)))

;; Implementation

Expand Down

0 comments on commit 7097b92

Please sign in to comment.