“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.”
―
Programming in Scala Fifth Edition: Updated for Scala 3.0
Share this quote:
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
by
Martin Odersky1,663 ratings, average rating, 100 reviews
Open Preview
Browse By Tag
- love (101345)
- life (79362)
- inspirational (75842)
- humor (44338)
- philosophy (30964)
- inspirational-quotes (28889)
- god (26867)
- truth (24739)
- wisdom (24617)
- romance (24350)
- poetry (23293)
- life-lessons (22586)
- quotes (21011)
- death (20532)
- travel (20109)
- happiness (19002)
- hope (18526)
- faith (18384)
- inspiration (17297)
- spirituality (15702)
- relationships (15530)
- religion (15375)
- motivational (15323)
- life-quotes (15301)
- love-quotes (15138)
- writing (14938)
- success (14185)
- motivation (13177)
- time (12864)
- motivational-quotes (12154)
