Kotlin: Filter and return elements from list with same parameter
I want to perform this simple thing over my list, by native Kotlin but it doesn't have function for lists which can do it. It has only opposite and its list.distinctBy{ it.value }. I need something like list.sameBy{ it.value }.