-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate some null-wrapping methods. Add sortedInReverse. Add I/O functions based on Input and Output typeclasses and deprecate some old I/O. Add dot. Simplify PrintingMode givens. Make timers AutoCloseable. (Redo grading code in T module.)
- Loading branch information
Michel Charpentier
authored and
Michel Charpentier
committed
Aug 15, 2024
1 parent
fe49c2b
commit c354d24
Showing
139 changed files
with
6,373 additions
and
1,009 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package tinyscalautils.collection | ||
|
||
import scala.collection.SeqOps | ||
|
||
extension [A, CC[_]](self: SeqOps[A, CC, CC[A]]) | ||
/** Sorted according to implicit order, but in reverse. */ | ||
def sortedInReverse[B >: A : Ordering]: CC[A] = self.sorted(using Ordering[B].reverse) |
Oops, something went wrong.