SortedMap uses any comparator

This commit is contained in:
2025-09-01 15:39:35 -07:00
parent 27d9250d34
commit 1432316fac
13 changed files with 139 additions and 123 deletions

View File

@@ -82,7 +82,7 @@ strongConnect {k} st vtx =
-- to ignore ambiguity from indirect solutions
tarjan : k. {{Eq k}} {{Ord k}} List (k × List k) List (List k)
tarjan {k} nodes =
let g = foldMap const EmptyMap $ map mkVertex nodes in
let g = foldMap const emptyMap $ map mkVertex nodes in
.result $ foldl checkVertex (MkTState 0 Nil Nil g) $ map fst nodes
where
mkVertex : k × List k k × TVertex k