Skip to content

Instantly share code, notes, and snippets.

View Ammar-Ishfaq's full-sized avatar
Focusing

Muhammad Ammar Ammar-Ishfaq

Focusing
View GitHub Profile
fun main() {
val sportStats = listOf(
Summary(Sport.HIKE, 92),
Summary(Sport.RUN, 77),
Summary(Sport.TOURING_BICYCLE, 322),
Summary(Sport.E_TOURING_BICYCLE, 656)
)
val nonEBikeStats = sportStats.filter { it.sport != Sport.E_TOURING_BICYCLE }