commonMain.neat.Valid.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neat-validation-jvm Show documentation
Show all versions of neat-validation-jvm Show documentation
A collection library that is built with interoperability in mind
The newest version!
package neat
data class Valid(
override val value: T
) : Validity {
override fun getOrThrow(): T = value
override fun map(transformer: (T) -> R) = Valid(transformer(value))
}