Closed masaeedu closed 4 years ago
I think this function would be at home in sanctuary-type-classes. We could define it there first.
@davidchambers Do we want to add this as-is to sanctuary-type-classes or do the head
/tail
in-terms-of-Foldable
stuff first and then try to define this on top? I can't think of what sort of things you'd use this for besides intercalating in lists.
Btw, looks like the CI is failing because of coverage, not sure I fully understand what the issue is.
@masaeedu you need to add some tests to test/intercalate.js
to cover the function. the Doctests don't count I think...
Do we want to add this as-is to sanctuary-type-classes or do the
head
/tail
in-terms-of-Foldable
stuff first and then try to define this on top?
The former, I believe. head
and tail
require sanctuary-maybe, which is not a dependency of sanctuary-type-classes.
@masaeedu, are you interested in putting together a pull request for Z.intercalate
?
@davidchambers Sure, I can take a crack at it. It would go somewhere in here, right?
Yes, it would. :)
Fixes #360