


They are always lazy executing an intermediate operation such as filter() does not actually perform any filtering, but instead creates a new stream that, when traversed, contains the elements of the initial stream that match the given predicate. Intermediate operations return a new stream. peek(e -> (e + " was consumed by peek().")) It gets even more interesting if we get rid of the forEach() call: Stream.of("one", "two", "three")
PEEK OUT SERIES
It might be tempting to think that we’ll see a series of peek() logs followed by a series of for-each logs but this is not the case: one was consumed by peek(). Stream/peek Lazy Evaluationīut… what will happen if we replace the terminal collect() operation with a forEach()? Stream.of("one", "two", "three") The result of such operation is not surprising: one was consumed by peek(). We can use it for applying side-effects for every consumed Stream element: Stream.of("one", "two", "three") Returns a stream consisting of the elements of this stream, additionally performing the provided action on each element as elements are consumed from the resulting stream. Let’s start responsibly by RTFM inspecting peek()’s user’s manual. Let’s try to clarify how it works and when should be used. I'm very happy with how the book has been coming together.The peek() method from the Java Stream API is often misunderstood. It has its own visual identity, which is wonderful. I was also thrilled because it looks different from other "Trek" comics currently being published. When the colors first came in I couldn't believe what I was looking at. How DC is bringing out all the best qualities of Oleg's art is mind-bending to me. The colors are not flat, there's shaping, there's modeling, and texturing in every panel. But at the same time it feels like a "Star Trek" comic book, which is really what it wants to be. Oleg has embraced the comic book identity of it, while at the same time, the characters look like the characters, the ships look like the ships.
PEEK OUT MOVIE
It can't look like still frames of a movie or a tv show. It has to look and feel like a comic book. Oleg is doing what I think a comic book should do. Oleg and DC are just working in synch with each other and it is unbelievable. Guggenheim: Very rarely have I worked on a series where there's been such a great match between the artist and the colorist. : How do Oleg Chudakov's artwork and DC Alonso's vibrant colors enhance your storytelling and elevate the "Star Trek" material even further? But regardless, it was very serendipitous in terms of the timing. It just so happened they picked the one that became "Echoes." And maybe they chose it because of Nichelle, who knows. Guggenheim: I actually pitched IDW and Paramount several loglines and each story I picked had different focuses. : Was it always your intention to center your story around the character of Nyota Uhura being that Nichelle Nichols passed away last year? I chose "The Motion Picture" period because it's so unexamined compared to a lot of other "Trek" stories, and one that I have a great deal of nostalgia and affection for. I asked if she'd be okay with me pitching something set in the movie timeline and she said absolutely.

In talking with IDW about doing a "Star Trek" story, Heather Antos, the senior editor, asked me if I had any interest in "The Original Series" crew. Between those two movies, that's what got me into "Star Trek." Then " Star Trek II: The Wrath of Khan" remains one of my all-time favorite films. That dynamic between Kirk, Spock and Bones McCoy can't be beat. There's a grandeur and a scope and this incredible Jerry Goldsmith score that's simply spectacular.Īnd at the end of the day you can't beat the casting. It's very different in terms of pace from the "Star Wars" movies. But when "Star Trek: The Motion Picture" came out I saw it in a theater and was completely entranced by it. I just wanted to do it because 'movie' "Trek" was my "Star Trek." When I was growing up in New York, "Star Trek" was syndicated and my dad would watch episodes and I'd watch pieces of them with him. Marc Guggenheim: I'm particularly bad at being commercial and reading the marketplace. : Why was this the perfect time to travel back into the "Star Trek: The Motion Picture" timeline in a new comic series and what did that iconic film mean to you? Cover art for "Star Trek: The Motion Picture - Echoes" #1 (Image credit: IDW)
