mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-19 22:33:11 -06:00
Added an O(n log n) version of nub
The new nub is called nub', and it replaces the old sortNub which was not lazy and did not retain the order between the elements.
This commit is contained in:
1 parent
e2ecdfed1f
commit
a7de16c34b
4 files changed
+14
-11
No files matched your search
@@ -20,7 +20,6 @@ import qualified Data.IntMap as IntMap
|
||||
import qualified GF.Data.TrieMap as TrieMap
|
||||
import qualified Data.List as List
|
||||
import Control.Monad.ST
|
||||
import GF.Data.Utilities(sortNub)
|
||||
|
||||
optimizePGF :: PGF -> PGF
|
||||
optimizePGF pgf = pgf{concretes=fmap (updateConcrete (abstract pgf) .
|
||||
|
||||
Reference in new issue
Block a user