I have an Option[String].
Option[String]
I want to check if there is a string exists and if it\'s exists its not blank.
def isBlank( input : Option[Strin
you can also check using lastOption or headOption
lastOption
headOption
if the string is empty it will return None
scala> "hello".lastOption res39: Option[Char] = Some(o) scala> "".lastOption res40: Option[Char] = None