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

take

From

Cover of Scala for the Impatient, Second Edition

Note

return first n characters scala> "abcde".take(2) res21: String = ab