summaryrefslogtreecommitdiff
path: root/src/Data
diff options
context:
space:
mode:
Diffstat (limited to 'src/Data')
-rw-r--r--src/Data/MinMaxPSQ.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Data/MinMaxPSQ.hs b/src/Data/MinMaxPSQ.hs
index dc9f1882..a6329175 100644
--- a/src/Data/MinMaxPSQ.hs
+++ b/src/Data/MinMaxPSQ.hs
@@ -80,3 +80,6 @@ take :: (PSQKey k, Ord p) => Int -> MinMaxPSQ' k p v -> MinMaxPSQ' k p v
80take !n !q | (size q <= n) = q 80take !n !q | (size q <= n) = q
81 | null q = q 81 | null q = q
82 | otherwise = take n $ deleteMax q 82 | otherwise = take n $ deleteMax q
83
84lookup' :: (PSQKey k, Ord p) => k -> MinMaxPSQ' k p v -> Maybe (p, v)
85lookup' k (MinMaxPSQ q _) = PSQ.lookup k q