exaV / screeps-kotlin-types

Screep's Kotlin type definitions
MIT License
17 stars 18 forks source link

equals() and hashcode() for lists #51

Closed ebabel closed 2 years ago

ebabel commented 4 years ago

Don't see an obvious way to add these, otherwise I'd PR.

Would be nice to support .contains() in List

exaV commented 4 years ago

What kind of object are we talking about? Instead of .contains() you can do list.any { it.id == myCreep.id }