0.7.0 #79

Merged
altavir merged 21 commits from dev into master 2023-11-26 10:08:10 +03:00
Showing only changes of commit e52d509c2b - Show all commits

View File

@ -134,6 +134,11 @@ public val Name.length: Int get() = tokens.size
*/
public fun Name.lastOrNull(): NameToken? = tokens.lastOrNull()
/**
* Last token or throw exception
*/
public fun Name.last(): NameToken = tokens.last()
/**
* First token of the name or null if it is empty
*/