Skip to content

Commit

Permalink
New implementation of zip can't handle inifnite lists on the first ar…
Browse files Browse the repository at this point in the history
…gument

Old implementation was able to implement this, but doing so in the new would be overly-complicated with not much gain
  • Loading branch information
LeventErkok committed Dec 1, 2024
1 parent f2b813f commit 337474e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions SBVTestSuite/TestSuite/Basics/Lambda.hs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ tests =
, goldenCapturedIO "lambda13" $ eval1 [(x, y) | x <- [1..3], y <- [4..6 :: Integer]]
(map (\t -> t^._1 + t^._2), P.map (uncurry (+)))

, goldenCapturedIO "lambda14" $ eval1 [1 .. 5 :: Integer] (mapi (+) 10, P.zipWith (+) [10..])

, goldenCapturedIO "lambda15" $ eval1 [1 .. 5 :: Integer] (foldl (+) 0, P.sum)
, goldenCapturedIO "lambda16" $ eval1 [1 .. 5 :: Integer] (foldl (*) 1, P.product)
Expand All @@ -90,8 +89,6 @@ tests =
)

, goldenCapturedIO "lambda18" $ eval1 [1 .. 5 :: Integer]
( foldli (\i b a -> i+b+a) 10 0
, P.foldl (\b (i, a) -> i+b+a) 0 . P.zip [10..]
)

, goldenCapturedIO "lambda19" $ eval1 [1 .. 5 :: Integer] (foldr (+) 0, P.foldr (+) 0)
Expand Down

0 comments on commit 337474e

Please sign in to comment.