Created
November 9, 2013 08:22
-
-
Save hhariri/7383062 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun topUSandUK_v2(albums: List<Album>): List<Album> { | |
val hits = arrayListOf<Album>() | |
for (album in albums) { | |
if (album.chartUK == 1 && album.chartUS == 1) { | |
hits.add(album) | |
} | |
} | |
return hits; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment