package com.insightfullogic.java8.examples.chapter1;

import java.util.stream.Stream;

import static java.util.stream.Stream.concat;

public interface Performance {

	public String getName();

	public Stream<Artist> getMusicians();

	public default Stream<Artist> getAllMusicians() {
		return getMusicians().flatMap(artist->{
			return concat(Stream.of(artist), artist.getMembers())
		});
	}
}

@@ -332,10 +332,12 @@
 tist
+ 
 -%3E
+ 
 %7B%0D%0A%09
@@ -391,16 +391,17 @@
 mbers())
+;
 %0D%0A%09%09%7D);%0D

complete Performance interface