<Akkurate 0.8.0 has been released!> :akkurate: Wh...
# feed
j
Akkurate 0.8.0 has been released! akkurate What's new? You can now transform values before validating them, perfect for normalization:
Copy code
hashtags.each {
    // Trim hashtags for leading "#", and only then ensure that it's not empty
    map { it.trimStart('#') }.isNotEmpty()
}
New constraints:
Copy code
// Validate the type of a value
someValue.isInstanceOf<String>()

// Validate elements are unique in a collection
someCollection.hasNoDuplicates()
It is now easier than ever to validate a specific index of a collection:
Copy code
someCollection.first().isNotEmpty()
someCollection.last().isNotEmpty()
someCollection[index].isNotEmpty()
What's next? 🔜 Probably Kotlin 2.0 and KMP 😏
🎉 8
K 5