Created
March 7, 2023 22:52
-
-
Save tfcporciuncula/dd4f016330087b5c4d8fcdbde24fd144 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
interface GreetingConcatenator { | |
fun concatenate(greetings: Set<String>): String | |
} | |
class GreetingConcatenatorImpl @Inject constructor( | |
) : GreetingConcatenator { | |
override fun concatenate(greetings: Set<String>): String { | |
return greetings.sorted().joinToString() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment