Daniel
05/08/2017, 11:09 PMsource.minBy { it.startX }?.startX ?: 0
Maybe a way to get the value of the property directly from the collection instead the object which it belongs to?kevinmost
05/08/2017, 11:20 PMsource.map { it.startX }.min() ?: 0
Daniel
05/08/2017, 11:21 PMkevinmost
05/09/2017, 1:44 AMFoo
, source.map(Foo::startX).min() ?: 0
, if you think that looks cleanerDaniel
05/09/2017, 6:46 AM