DEV Community

Discussion on: Gang of Four Patterns in Kotlin

Collapse
 
lovis profile image
Lovis

Hey Mario, first of all: thanks for your kind words!
It's definitely true that function composition would be the better solution here. I used extensions because it's "pure" Kotlin. I didn't want to copy your examples and solutions, either. Thought that would be boring :-)