kotlin-result/src/main/kotlin/com/github/michaelbull/result
Michael Bull e455be2cc8 Make lambda return type of expect{Err} return Any
When constructing the exception message the toString method will be
implicitly called on the result of the lambda.

Takes inspiration from Kotlin's require function [1].

[1]: https://github.com/JetBrains/kotlin/blob/v1.2.0/libraries/stdlib/src/kotlin/util/Preconditions.kt#L26
2017-11-28 18:23:36 +00:00
..
And.kt Rename Error class to Err 2017-10-22 16:08:26 +01:00
Get.kt Add getErrorOrElse 2017-11-22 23:25:28 +00:00
Iterable.kt Rename Error class to Err 2017-10-22 16:08:26 +01:00
Map.kt Rename Error class to Err 2017-10-22 16:08:26 +01:00
On.kt Rename Error class to Err 2017-10-22 16:08:26 +01:00
Or.kt Rename Error class to Err 2017-10-22 16:08:26 +01:00
Result.kt Rename Error class to Err 2017-10-22 16:08:26 +01:00
ResultIterator.kt Rename Error class to Err 2017-10-22 16:08:26 +01:00
Unwrap.kt Make lambda return type of expect{Err} return Any 2017-11-28 18:23:36 +00:00