toFunction2

fun <T> BiPredicate<T, Session>.toFunction2(): Function2<T, Session, Validation<PrimitiveBool>>