Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Part of #4030. Port the `POSet` class from Scala to Java. This is mostly a straightforward conversion from Scala functional idioms (`map`, `filter`, `reduce`, etc.) to the corresponding Java Stream methods. To port `lazy val`s, we also implement a `Lazy<T>` wrapper which caches the result of a `Supplier<T>`. The only remaining reference to Scala here is a single constructor which takes a `scala.collection.Set<Tuple2<T, T>>` and internally converts it to a `java.util.Set<Pair<T, T>>`. This can be removed once we more pervasively switch away from Scala collection types everywhere in the codebase. --------- Co-authored-by: Bruce Collie <brucecollie82@gmail.com>
- Loading branch information
1 parent
4f1b4e2
commit 2dbd10c
Showing
16 changed files
with
463 additions
and
293 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
k-distribution/tests/regression-new/checks/checkCircularList.k.out
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,2 +1,2 @@ | ||
[Error] Compiler: Had 1 parsing errors. | ||
[Error] Compiler: Illegal circular relation: Exp < ExpList < Exp | ||
[Error] Compiler: Illegal circular relation: ExpList < Exp < ExpList |
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 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
Oops, something went wrong.