Last active
November 19, 2018 16:14
-
-
Save alexlarkou/8e4802706eefd2f9343b91254477e40f to your computer and use it in GitHub Desktop.
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
// c# | |
IEnumerable<Student> studentsInAllSchools = schools.SelectMany(s => s.get_students()); | |
// java | |
Stream<Student> studentsInAllSchools = schools.flatMap(s -> s.get_students()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment