O'Reilly logo
  • Karthik Ram thinks this is interesting:

  (fileName: String, query: String) => fileName.endsWith(query)

From

Cover of Programming in Scala, Second Edition

Note

if you miss this,
filesMatching(query, .endsWith()) becomes confusing.