What is the easiest way to remove the last character from the end of a line in Scala?
I believe the Rubys String class has very useful methods like chop. I would use "oddoneoutz" .headOption in Scala, but it has depreciated. I do not want to go into complex complexity:
string.slice(0, string.length - 1)
Please tell me that there is a simple simple method, for example, chopping off something so common.
string scala
Brian Heylin Nov 30 '09 at 21:23 2009-11-30 21:23
source share