toExpression

fun Predicate<Session>.toExpression(): Function1<Session, Validation<PrimitiveBool>>

Like Expressions.javaBooleanFunctionToExpression, but for the specialized Predicate type.