Skip to content

Commit

Permalink
Revert "Remove Set from Foldable docs"
Browse files Browse the repository at this point in the history
This reverts commit 0ffbc55.
  • Loading branch information
Luka Jacobowitz committed Oct 19, 2017
1 parent 376a5c6 commit 908c914
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/src/main/tut/typeclasses/foldable.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ scaladoc: "#cats.Foldable"
Foldable type class instances can be defined for data structures that can be
folded to a summary value.

In the case of a collection (such as `List` or `Vector`), these methods will fold
In the case of a collection (such as `List` or `Set`), these methods will fold
together (combine) the values contained in the collection to produce a single
result. Most collection types have `foldLeft` methods, which will usually be
used by the associated `Foldable[_]` instance.
Expand Down Expand Up @@ -40,10 +40,10 @@ Foldable[List].reduceLeftToOption(List[Int]())(_.toString)((s,i) => s + i)
Foldable[List].reduceLeftToOption(List(1,2,3,4))(_.toString)((s,i) => s + i)
Foldable[List].reduceRightToOption(List(1,2,3,4))(_.toString)((i,s) => Later(s.value + i)).value
Foldable[List].reduceRightToOption(List[Int]())(_.toString)((i,s) => Later(s.value + i)).value
Foldable[Vector].find(Vector(1,2,3))(_ > 2)
Foldable[Vector].exists(Vector(1,2,3))(_ > 2)
Foldable[Vector].forall(Vector(1,2,3))(_ > 2)
Foldable[Vector].forall(Vector(1,2,3))(_ < 4)
Foldable[Set].find(Set(1,2,3))(_ > 2)
Foldable[Set].exists(Set(1,2,3))(_ > 2)
Foldable[Set].forall(Set(1,2,3))(_ > 2)
Foldable[Set].forall(Set(1,2,3))(_ < 4)
Foldable[Vector].filter_(Vector(1,2,3))(_ < 3)
Foldable[List].isEmpty(List(1,2))
Foldable[Option].isEmpty(None)
Expand Down

0 comments on commit 908c914

Please sign in to comment.