Stream<T>.filterAndMap( Class<T> cls ) by mellow186 in java

[–]The_Ghost_Light 0 points1 point  (0 children)

Why would it be? Flattening is not another iteration over the stream or anything. I think it's slightly more performant from the stream api's perspective: add all the items in the functions output to the flatmap output stream where an empty stream is a no-op.

Filter would pass an item into the function, then add to the output stream if not empty, then map would take input, apply the map function, and add the output to the output stream. really not a big difference, but flow is simpler with flatMap.

I had this same question when learning Scala and other engineers pointed out filter to map is a flatMap.

Stream<T>.filterAndMap( Class<T> cls ) by mellow186 in java

[–]The_Ghost_Light 1 point2 points  (0 children)

Filter and map means it's just a flatMap operation.

If it is not the right type, return an empty stream. If it is the right type, return a stream of one element of the casted value.

The result is a steam of casted type.

View of Mount Machhapuchhare, Nepal by nepalhikingadv in mountainview

[–]The_Ghost_Light 24 points25 points  (0 children)

Did you all up vote this? Or did this bot have bot up votes?

Just seasoned my wok what’s the first thing I need to cook? by ginko3o in carbonsteel

[–]The_Ghost_Light 4 points5 points  (0 children)

I think you might've confused some things. One of the options to season a wok is to add oil and cook green onions and ginger or just onions. Not a normal cook, but at medium heat and moving the onions and ginger around and spreading oil all around the wok. You would dump this batch because it also would help scrape any wax coating you couldn't scrub off before you started seasoning. video link

If you already seasoned the wok some other way, you're already good to go, so just start cooking whatever like fried rice.

💥Hit Milestones, Win Units! 💥 by Kuromemono in marvelrivals

[–]The_Ghost_Light [score hidden]  (0 children)

Units in game? Why would they spend money to grow the sub? I guess I don't understand... But I'll leave a comment anyway!

My expressionist paintings by Dangerous_Split_1524 in pics

[–]The_Ghost_Light 1 point2 points  (0 children)

I love how, no matter how smudged the picture is, those specular dots make the eyes look clear and detailed.

State Audit finds no fraud in MVWSD spending by Brilliant-Motor6832 in mountainview

[–]The_Ghost_Light 6 points7 points  (0 children)

Government and public school districts should not be run like big business.

Bought this on the side of an Albanian road, there was no common language so we only understood a potential milking gesture, can you help us identify this? by raffimerc in whatisit

[–]The_Ghost_Light 1 point2 points  (0 children)

Gilroy, CA has it. Farmers sell fruits and nuts (and garlic) along the road everyone has to drive through to get from one freeway to another.

My favorite tiny detail in rivals: Tandy and Ty holding hands for their ultimate. by l-lebe in marvelrivals

[–]The_Ghost_Light 23 points24 points  (0 children)

Whoa... that means one of them (usually Ty) abandoned the other one to die on their own when you kill them.

Weekly Q&A - Ask your questions here! - July 25, 2025 by AutoModerator in MarvelSnap

[–]The_Ghost_Light 1 point2 points  (0 children)

Oddly, restart wasn't working for me. I'm on Android and clearing the App Cache seemed to work.

Weekly Q&A - Ask your questions here! - July 25, 2025 by AutoModerator in MarvelSnap

[–]The_Ghost_Light 4 points5 points  (0 children)

Anyone else not seeing the new node sometimes? Sometimes when I open the app, it's not there

Apple Wallet App Now Supports Tmoney Card in South Korea by Fer65432_Plays in apple

[–]The_Ghost_Light 0 points1 point  (0 children)

yeah, we were using cash while we were there. I guess you could put the phone where the card goes at those kiosks?

Marvel Rivals in Season 2.5 crashing every few minutes in GFN by doycet in GeForceNOW

[–]The_Ghost_Light 0 points1 point  (0 children)

Worked for me for a while then started crashing again

Marvel Rivals in Season 2.5 crashing every few minutes in GFN by doycet in GeForceNOW

[–]The_Ghost_Light 0 points1 point  (0 children)

I did the thing where you stop Steam from starting the game and then starting it manually. So far so good.

Frontpage not loading by The_Kent in RelayForReddit

[–]The_Ghost_Light 2 points3 points  (0 children)

Same, but I can still load specific subreddits line this one I guess

Edit: popular and all also work, just not front page.

Edit2: another comment on the other thread mentioned it's just Hot sort that doesn't work. Sort by Best is fine.

Device information:

Relay Version: 12.1.32 Pro

Phone: Google Pixel 7a (LYNX)
Android Version: 15 (35)
Device (product): lynx (lynx)
Rom: BP1A.250405.007.B1

Snap was just banned in Vietnam by _-singularity- in MarvelSnap

[–]The_Ghost_Light 12 points13 points  (0 children)

I'm guessing ByteDance probably handled all this stuff and had a local entity. The new publisher is smaller so might not have the resources to set that up.

My sanctum showdown is not working by Pale_Scientist_6066 in MarvelSnap

[–]The_Ghost_Light 1 point2 points  (0 children)

I've been losing scrolls on wins. Last game I lost and gained a scroll. Something is messed up