We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c80a10 commit 802aa3bCopy full SHA for 802aa3b
src/Data/MonoTraversable/Keys.hs
@@ -2906,25 +2906,3 @@ monoLookupFoldable i t
2906
go _ [] = Nothing
2907
go 0 [x] = Just x
2908
go !n (_:xs) = go (n-1) xs
2909
-
2910
2911
-{-
2912
-monoZipWithIntegralKey
2913
- :: ( Integral i, MonoTraversable mono)
2914
- => (i -> Element mono -> Element mono -> Element mono) -> mono -> mono -> mono
2915
-monoZipWithIntegralKey f as bs = (`S.evalState` (0, otoList xs)) $ otraverse g ys
2916
- where
2917
- (xs, ys, swapped)
2918
- | olength xs >= olength ys = (as, bs, False)
2919
- | otherwise = (bs, as, True )
2920
2921
- g y = do
2922
- (!k, v) <- S.get
2923
- case v of
2924
- [] -> pure y
2925
- z:zs -> do
2926
- S.put ((k+1), zs)
2927
- pure . f k $ if swapped
2928
- then y z
2929
- else z y
2930
--}
0 commit comments