https://kotlinlang.org logo
k

kirillrakhman

06/09/2017, 2:13 PM
btw, kotlin doesn't have pattern matching. what you're doing is constructing new instances just for comparison