Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only use semigroup instead of monoid for FingerTree summary.
- Loading branch information
1 parent
cbc8767
commit db8270b
Showing
7 changed files
with
84 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
3 changes: 1 addition & 2 deletions
3
...rc/main/java/org/reactfx/util/Monoid.java → ...main/java/org/reactfx/util/Semigroup.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
package org.reactfx.util; | ||
|
||
public interface Monoid<T> { | ||
T unit(); | ||
public interface Semigroup<T> { | ||
T reduce(T left, T right); | ||
} |
Oops, something went wrong.