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 b8bec97 commit 4392a8cCopy full SHA for 4392a8c
antlr-kotlin-runtime/src/commonMain/kotlin/com/strumenta/antlrkotlin/runtime/Collections.kt
@@ -2,10 +2,10 @@
2
// Copyright 2024-present Strumenta and contributors, licensed under BSD 3-Clause.
3
package com.strumenta.antlrkotlin.runtime
4
5
-public object Collections {
6
- public fun <T : Comparable<T>> min(collection: Collection<T>): T =
+internal object Collections {
+ fun <T : Comparable<T>> min(collection: Collection<T>): T =
7
collection.minOrNull() ?: throw NoSuchElementException()
8
9
- public fun <T : Comparable<T>> max(collection: Collection<T>): T =
+ fun <T : Comparable<T>> max(collection: Collection<T>): T =
10
collection.maxOrNull() ?: throw NoSuchElementException()
11
}
0 commit comments