0.7.0 #79
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user