commonMain.krono.internal.utils.ensure.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of krono-api-jvm Show documentation
Show all versions of krono-api-jvm Show documentation
An multiplatform interoperable datetime library
The newest version!
package krono.internal.utils
internal fun ensure(key: String, value: Int, isWithin: IntRange) = require(value in isWithin) {
"$key: $value is not in the $isWithin range"
}