Cleanup combining code, flatten modules
This commit is contained in:
@@ -52,7 +52,7 @@ maxShowX = \case
|
||||
_ -> Nothing
|
||||
|
||||
itemCombinationsEdges :: [(CombNode,CombNode,Int)]
|
||||
itemCombinationsEdges = concatMap (f . over _2 (_itType)) itemCombinations
|
||||
itemCombinationsEdges = concatMap (f . over _2 _itType) itemCombinations
|
||||
--itemCombinationsEdges = concatMap (f . over _2 (_iyBase . _itType)) bulletCombinations
|
||||
where
|
||||
f (abts,bt)
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
module Dodge.Combine.Trie
|
||||
( combinationsTrie
|
||||
) where
|
||||
|
||||
import Data.Bifunctor
|
||||
import Data.List (sort)
|
||||
import Dodge.Combine.Combinations
|
||||
import Dodge.Data.Item
|
||||
import SimpleTrie
|
||||
import Data.Foldable
|
||||
|
||||
--flatCombinationsTrie :: Trie ItemType Item
|
||||
--{-# INLINE flatCombinationsTrie #-}
|
||||
--flatCombinationsTrie = foldl'
|
||||
-- (flip $ uncurry insertInTrie . first sort)
|
||||
-- emptyTrie
|
||||
-- flatItemCombinations
|
||||
|
||||
combinationsTrie :: Trie (ItAmount, ItemType) Item
|
||||
{-# INLINE combinationsTrie #-}
|
||||
combinationsTrie =
|
||||
foldl'
|
||||
(flip $ uncurry insertInTrie . first sort)
|
||||
emptyTrie
|
||||
itemCombinations
|
||||
Reference in New Issue
Block a user