Skip to content

Instantly share code, notes, and snippets.

@tfcporciuncula
Created March 7, 2023 22:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tfcporciuncula/dd4f016330087b5c4d8fcdbde24fd144 to your computer and use it in GitHub Desktop.
Save tfcporciuncula/dd4f016330087b5c4d8fcdbde24fd144 to your computer and use it in GitHub Desktop.
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