small change in createIndexes

parent 9a6c8946
...@@ -112,7 +112,8 @@ createIndexes = set2indexes . cooc2set ...@@ -112,7 +112,8 @@ createIndexes = set2indexes . cooc2set
set2indexes :: Ord t => Set t -> (Map t Index, Map Index t) set2indexes :: Ord t => Set t -> (Map t Index, Map Index t)
set2indexes s = (M.fromList toIndex', M.fromList fromIndex') set2indexes s = (M.fromList toIndex', M.fromList fromIndex')
where where
fromIndex' = zip [1..] (S.toList s) fromIndex' = zip [0..] xs
toIndex' = zip (S.toList s) [1..] toIndex' = zip xs [0..]
xs = S.toList s
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment