We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e6ba0f commit e4ae0b8Copy full SHA for e4ae0b8
src/DFAMin.hs
@@ -21,7 +21,7 @@ import Data.Foldable (foldl')
21
#if __GLASGOW_HASKELL__ >= 802
22
restrictKeys = IM.restrictKeys
23
#else
24
-restrictKeys m s = IM.filterWithKey (\k _ -> IS.member k s) m
+restrictKeys m s = IM.intersection m (IM.fromSet (const ()) s)
25
#endif
26
27
-- Hopcroft's Algorithm for DFA minimization (cut/pasted from Wikipedia):
0 commit comments