(?)
Quotes are added by the Goodreads community and are not verified by Goodreads. (Learn more)

“you could just write (fileName, query) => fileName.endsWith(query). Since the parameters are each used only once in the body of the function (i.e., the first parameter, fileName, is used first in the body, and the second parameter, query, is used second), you can use the placeholder syntax: _.endsWith(_). The first underscore is a placeholder for the first parameter, the file name, and the second underscore a placeholder for the second parameter, the query string.”

Martin Odersky, Programming in Scala Fifth Edition: Updated for Scala 3.0
Read more quotes from Martin Odersky


Share this quote:
Share on Twitter

Friends Who Liked This Quote

To see what your friends thought of this quote, please sign up!

0 likes
All Members Who Liked This Quote

None yet!


This Quote Is From

Programming in Scala Fifth Edition: Updated for Scala 3.0 Programming in Scala Fifth Edition: Updated for Scala 3.0 by Martin Odersky
1,663 ratings, average rating, 100 reviews
Open Preview

Browse By Tag