Collection Extensions
This section describes how to perform same checks on multiple texts at same time.
Overview
var emailList = listOf("email1@domain.com", "email2@dom.com", "em3@ga.com")
// You can pass any collection via spread operator
var allValid = validEmailList(*emailList, { str, msg ->
// The str is an invalid text. The msg contains the message here.
})
// Or you can pass any number of arguments directly
var allValid2 = validEmailList("em@gma.com", "te@st.com", "23ss@", { str, msg ->
// The str is the invalid text. The msg contains the message here.
})List of Collection Extensions
Last updated