Last active
August 4, 2017 07:22
-
-
Save Sihui/7f5b1175a677c1c8cc4f3ea445996a05 to your computer and use it in GitHub Desktop.
Design Pattern: Iterator and Movie Collections
This file contains 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
netflix_movies = [ | |
{ | |
title: 'Train to Busan', | |
year: '2016', | |
director: 'Yeon Sang-ho', | |
genre: 'Drama film/Disaster Film', | |
length: '1h 58m' | |
}, | |
{ | |
title: 'The Big Short', | |
year: '2015', | |
director: 'Adam McKay', | |
genre: 'Drama film/Comedy-drama', | |
length: '2h 10m' | |
}, | |
{ | |
title: 'Zootopia', | |
year: '2016', | |
director: 'Byron Howard, Rich Moore, Jared Bush', | |
genre: 'Mystery/Crime film', | |
length: '1h 50m' | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment