Open In App

Scala Char isIdentifierIgnorable() method with example

Last Updated : 03 Nov, 2019
Improve
Improve
Like Article
Like
Save
Share
Report

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#




// Scala program of isIdentifierIgnorable()
// method
  
// Creating object
object GfG
  
    // Main method
    def main(args:Array[String])
    {
      
        // Applying isIdentifierIgnorable() method 
        val result = ('\u0555').isIdentifierIgnorable
          
        // Displays output
        println(result)
      
    }


Output:

false

Example: 2#




// Scala program of isIdentifierIgnorable()
// method
  
// Creating object
object GfG
  
    // Main method
    def main(args:Array[String])
    {
      
        // Applying isIdentifierIgnorable() method
        val result = ('\u000E').isIdentifierIgnorable
          
        // Displays output
        println(result)
      
    }


Output:

true


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads