Method to validate a list

validate_list(input_list, message)

Arguments

input_list

input list

message

message text to report in case of failure (optional)

Value

Execution halts with error if invalid format found.