Skip to content

Commit

Permalink
Add deprecated overload of NonEmptyList#concat
Browse files Browse the repository at this point in the history
  • Loading branch information
durban committed Oct 17, 2017
1 parent d21fa9d commit 9a5d4ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/main/scala/cats/data/NonEmptyList.scala
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ final case class NonEmptyList[+A](head: A, tail: List[A]) {
def concat[AA >: A](other: List[AA]): NonEmptyList[AA] =
NonEmptyList(head, tail ::: other)

@deprecated("Use concatNel", since = "1.0.0-RC1")
def concat[AA >: A](other: NonEmptyList[AA]): NonEmptyList[AA] =
concatNel(other)

/**
* Append another NonEmptyList
*/
Expand Down

0 comments on commit 9a5d4ff

Please sign in to comment.