Scala Char isIdentifierIgnorable() method with example
Last Updated :
03 Nov, 2019
The isIdentifierIgnorable() method is utilized to determine if the stated character is an ignorable character in a Scala identifier or a Unicode identifier.
Method Definition: def isIdentifierIgnorable: Boolean
Return Type: It returns true if the stated character is an ignorable control character else it returns false.
Example: 1#
object GfG
{
def main(args : Array[String])
{
val result = ( '\u0555' ).isIdentifierIgnorable
println(result)
}
}
|
Example: 2#
object GfG
{
def main(args : Array[String])
{
val result = ( '\u000E' ).isIdentifierIgnorable
println(result)
}
}
|
Share your thoughts in the comments
Please Login to comment...