This commit is contained in:
Trolli Schmittlauch 2020-08-12 12:16:20 +02:00
parent 1258f673da
commit 1d808b6776

View file

@ -241,9 +241,9 @@ takeRMapPredecessorsFromTo :: (Bounded k, Ord k, Num k)
-> [a] -> [a]
takeRMapPredecessorsFromTo fromVal toVal rmap = takeEntriesUntil_ rmap rMapLookupPred toVal fromVal Nothing [] takeRMapPredecessorsFromTo fromVal toVal rmap = takeEntriesUntil_ rmap rMapLookupPred toVal fromVal Nothing []
takeRMapSuccesorsFromTo :: (Bounded k, Ord k, Num k) takeRMapSuccessorsFromTo :: (Bounded k, Ord k, Num k)
=> k -- start value for taking => k -- start value for taking
-> k -- stop value for taking -> k -- stop value for taking
-> RingMap k a -> RingMap k a
-> [a] -> [a]
takeRMapSuccesorsFromTo fromVal toVal rmap = takeEntriesUntil_ rmap rMapLookupSucc toVal fromVal Nothing [] takeRMapSuccessorsFromTo fromVal toVal rmap = takeEntriesUntil_ rmap rMapLookupSucc toVal fromVal Nothing []