Johann Pardanaud
05/27/2024, 8:56 AMhashtags.each {
    // Trim hashtags for leading "#", and only then ensure that it's not empty
    map { it.trimStart('#') }.isNotEmpty()
}// Validate the type of a value
someValue.isInstanceOf<String>()
// Validate elements are unique in a collection
someCollection.hasNoDuplicates()someCollection.first().isNotEmpty()
someCollection.last().isNotEmpty()
someCollection[index].isNotEmpty()Andromadus Naruto
05/27/2024, 4:34 PM