Skip to content

Instantly share code, notes, and snippets.

@Sihui
Last active August 4, 2017 07:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sihui/7f5b1175a677c1c8cc4f3ea445996a05 to your computer and use it in GitHub Desktop.
Save Sihui/7f5b1175a677c1c8cc4f3ea445996a05 to your computer and use it in GitHub Desktop.
Design Pattern: Iterator and Movie Collections
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