Closed non closed 8 years ago
Can we add law-checking for these?
Yes, I'll enable the additional law-checking too. Thanks for keeping me honest @ceedubs!
+1 for tests.
Could we factor the inner loop of these functions to only consume iterators without a perf cost? Then we could easily make instances for other Iterable
types?
@johnynek Yeah Iterator
and Builder
might work for everything except Array
. I'll give it a shot.
Fixes #118.
Note that if we want to support "pairwise instances" for additive/multiplicative semigroups for lists they would be really easy to do (treating uneven lengths as one/zero padded).