Closed
Description
I wonder of wherher the library needs some generalized zipWith-n functions.
For example, the below function is actually zipWith3,
but one list is by List and others are by List.All:
zip3with? : (triples : List (C × ℕ × C)) → All.All ^eq triples →
All.All (\e → e > 0) $ map tuple32 triples → List Item
zip3with? [] _ _ = []
zip3with? ((p , e , d) ∷ triples) (d=p^e ∷a eqs) (e>0 ∷a restExps>0) =
item ∷ (zip3with? triples eqs restExps>0)
where
item = record{ ... }