https://kotlinlang.org logo
v

voddan

12/27/2017, 6:59 PM
In most cases Strategy can be replaced by providing a lambda as a parameter. So instead of creating different classes for different behavior you just write the behavior in a lambda or a function and then pass it to your algorithm