Skip to content

Commit 1b3d3d9

Browse files
committed
exercise22 solution
1 parent bf9f4bb commit 1b3d3d9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/learnrxjava/ComposableListExercises.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -902,8 +902,10 @@ public static ComposableList<JSON> exercise22() {
902902
);
903903

904904
//... finish this expression
905-
// return ComposableListExercises.zip(
906-
throw new UnsupportedOperationException("Not implemented yet.");
905+
return ComposableListExercises.zip(videos.map(video -> video.id),
906+
bookmarks.map(bookmark -> bookmark.id),
907+
(a, b) -> json("videoId", a, "bookmarkId", b));
908+
//throw new UnsupportedOperationException("Not implemented yet.");
907909
}
908910

909911
/*

0 commit comments

Comments
 (0)