diff --git a/core/src/main/scala/cats/data/NonEmptyList.scala b/core/src/main/scala/cats/data/NonEmptyList.scala index 875609c2368..c28fa9b8395 100644 --- a/core/src/main/scala/cats/data/NonEmptyList.scala +++ b/core/src/main/scala/cats/data/NonEmptyList.scala @@ -82,6 +82,9 @@ final case class NonEmptyList[+A](head: A, tail: List[A]) { def ::[AA >: A](a: AA): NonEmptyList[AA] = NonEmptyList(a, head :: tail) + def :::[AA >: A](other: NonEmptyList[AA]): NonEmptyList[AA] = + other.concat(this) + /** * Remove elements not matching the predicate *