Rob Elliot
is
when
Adam S
T
inline fun <reified T> fetch(key: String): Outcome<FailedLookupResult, T> = ifContains(key) { when (val candidate = get(key)) { is T -> candidate.success() null -> NullValue(key).failure() else -> UnexpectedType(key, candidate).failure() } }
reified
Matteo Mirk
T:JsonNode
A modern programming language that makes developers happier.