<@U4UGS5FC7> lets say one has a tree like structur...
# arrow
n
@raulraja lets say one has a tree like structure of items that all are subject to the same set of rules, is something along the lines of this appropriate or am i missing the boat somewhere?
Copy code
val childValidation = children.k().traverse(
            { it.validate() },
            Validated.applicative()
    ).ev()
    
    val myValidation = childValidation.fold({ errors ->
        Validated.Invalid(Nel(AggregateError(this), errors.all))
    }){
        Validated.valid()
    }