Skip to content

Instantly share code, notes, and snippets.

@hhariri
Last active December 27, 2015 20:19
Show Gist options
  • Select an option

  • Save hhariri/7383190 to your computer and use it in GitHub Desktop.

Select an option

Save hhariri/7383190 to your computer and use it in GitHub Desktop.
fun topUSandUK_v3(albums: List<Album>): List<Album> {
val hits = arrayListOf<Album>()
albums.forEach {
if (it.chartUK == 1 && it.chartUS == 1) {
hits.add(it)
}
}
return hits;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment