e455be2cc8
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 |
||
---|---|---|
.. | ||
main/kotlin/com/github/michaelbull/result | ||
test/kotlin/com/github/michaelbull/result |