arrow-refined-types / arrow.refinement / renderMessages

renderMessages

fun renderMessages(results: Constraints): String

Renders in a comma separated String all messages associated to failures validating results

import arrow.refinement.renderMessages
import arrow.refinement.ensure

val constraints = ensure(true to "passed", false to "failed")
renderMessages(constraints)
// failed

Do you like Arrow?

Arrow Org
<