Когда вы нажимаете клавишу табуляции, REPL показывает вам методы, которые вы можете вызвать для объекта:
scala> val s = "abc"
s: java.lang.String = abc
scala> s.<tab>
+ asInstanceOf charAt
codePointAt codePointBefore codePointCount
compareTo compareToIgnoreCase concat
contains contentEquals endsWith
equalsIgnoreCase getBytes getChars
indexOf intern isEmpty
isInstanceOf lastIndexOf length
matches offsetByCodePoints regionMatches
replace replaceAll replaceFirst
split startsWith subSequence
substring toCharArray toLowerCase
toString toUpperCase trim
Для получения дополнительной информации о REPL смотрите здесь .