Created
September 19, 2022 16:22
-
-
Save benweidig/92433faf74938ca971ab4f3120e6bb1c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// EXCERPT FROM java.lang.String | |
class String implements ... { | |
String toLowerCase() { | |
// ... | |
} | |
} | |
// AS LAMBDA EXPRESSION | |
Function<String, String> toLowerCaseLambda = $ -> $.toLowerCase(); | |
// AS METHOD REFERENCE | |
Function<String, String> toLowerCaseRef = String::toLowerCase; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment