Skip to content

Commit

Permalink
fix ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
glguy committed Dec 5, 2023
1 parent 56c6301 commit 4eaac7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solutions/src/2023/05.hs
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ checkMaps :: [(String, String, [(Int, Int, Int)])] -> [[(Interval, Int)]]
checkMaps input = foldr processMap finish input "seed"
where
processMap (from, to, entries) continue expect =
check from expect (map entryToInterval entries : continue to)
check expect from (map entryToInterval entries : continue to)

finish final = check final "location" []
finish final = check "location" final []

entryToInterval (dst, src, len) = (interval src len, dst - src)

Expand Down

0 comments on commit 4eaac7d

Please sign in to comment.