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:
peter.ljunglof
2012-08-29 21:45:10 +00:00
parent e2ecdfed1f
commit a7de16c34b
4 changed files with 14 additions and 11 deletions

View File

@@ -22,7 +22,7 @@ import GF.Grammar.Lookup
import GF.Grammar.Predef
import GF.Data.BacktrackM
import GF.Data.Operations
import GF.Data.Utilities (updateNthM, updateNth, sortNub)
import GF.Data.Utilities (updateNthM, updateNth)
import System.IO
import qualified Data.Map as Map