invoke

operator fun invoke(list: List<Any>, name: String): ValidationResult

Validates that a given list is not empty.

Return

A ValidationResult object indicating the success or failure of the validation.

Parameters

list

The list to be validated.

name

The name or description of the list for error messages.