O'Reilly logo
  • Yan Ren thinks this is interesting:

takeRight

From

Cover of Scala for the Impatient, Second Edition

Note

return last n characters scala> "abcde".takeRight(2) res23: String = de