We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 226c84a commit 1a40c67Copy full SHA for 1a40c67
1 file changed
core/src/main/java/fj/Semigroup.java
@@ -621,14 +621,19 @@ public static <A> Semigroup<IO<A>> ioSemigroup(final Semigroup <A> sa) {
621
public static final Semigroup<Unit> unitSemigroup = unitMonoid.semigroup();
622
623
/**
624
- * A semigroup for sets.
+ * A union semigroup for sets.
625
*
626
* @return a semigroup for sets.
627
*/
628
public static <A> Semigroup<Set<A>> setSemigroup() {
629
return semigroupDef(Set::union);
630
}
631
632
+ /**
633
+ * A intersection semigroup for sets.
634
+ *
635
+ * @return a semigroup for sets.
636
+ */
637
public static <A> Semigroup<Set<A>> setIntersectionSemigroup() {
638
return semigroupDef(Set::intersect);
639
0 commit comments