/** Returns a subset of `list` containing only the items where `someBool == true` */ fun filterList(items:List) = items.filter { item -> item.someBool } // or { it.someBool }