elect
06/15/2017, 10:31 AMfun findWindowSettings(name:String): IniData? {
val id = hash(name, 0)
return g.settings.firstOrNull { it.id == id }
}
as fun findWindowSettings(name:String) = g.settings.firstOrNull { it.id == hash(name, 0) }
will be the hash()
result cached or executed each time?marstran
06/15/2017, 11:02 AMelect
06/15/2017, 11:05 AMcedric
06/15/2017, 4:29 PMelect
06/15/2017, 4:30 PM