scalaz/scalaz — pull request #229 by S11001001 (2012-12-18 00:48:46+00:00)
Title: intercalate generalized to Foldables of Monoids

Also removes the specialized pimps in favor of this one. Tests included.

```scala
scala> val xs = List(Vector("this", "has"), Vector(), Vector("elements"), Vector("beneath"))
Foldable[List] compose Foldable[Vector] intercalate (xs, "!")
("beneath"))
xs: List[scala.collection.immutable.Vector[java.lang.String]] = List(Vector(this, has), Vector(), Vector(elements), Vector(beneath))

scala> Foldable[List] compose Foldable[Vector] intercalate (xs, "!")
res2: java.lang.String = this!has!elements!beneath

scala> List(Cord("hi"), Cord("there"), Cord("Slartibartfast")) intercalate Cord(", ")
", ")
res4: scalaz.Cord = hi, there, Slartibartfast
```