> Reduce also forces you to conjure up a "zero" value of the relevant type, which isn't usually difficult but it does constitute some extra mental overhead.
It's always worthwhile to consider what the result will be when you pass in an empty list.
If you have need of a reducing operation though, you will still need to think about that value. If you are summing up a list of numbers, it doesn't matter whether you use reduce or a loop, you need to set some initial value.
I agree, although most of the time you do end up needing to consider it with Map/Filter. It's just, it doesn't force you to. Which means either you think about it later, or it bites you in the ass because you didn't consider the empty case. Not always—and for those cases where you don't end up needing the empty case, Reduce is probably not necessary, and Map/Filter is sufficient.
You're implying they should have been kept there? I'm not following. It looks like they were maliciously sent there without an agreement, and still were treated humanely and forwarded somewhere that agreed to take them...? You're criticizing this?
And the border communities loved having them there and invited them? Everything I said was factual. The voters of those northern communities love supporting policies as long as they happen someplace else. A thing called luxury beliefs.
> Although their travel to Massachusetts was facilitated by DeSantis, the migrants who arrived on Martha’s Vineyard on Wednesday came from Texas. The DeSantis administration paid an aviation company, Vertol Systems Company Inc., $615,000 to transport the migrants from San Antonio to the exclusive vacation enclave.
So Florida spent $615,000 to pick up some people from Texas and dump them on an island in Massachusetts?
...and you imagine that this makes the people in Massachusetts look bad?
It’s interesting how many studies were performed that confirmed this, and yet most (all?) of the time, the modernist building was built anyway. What was the point?
I would ask about their needs, but, definitely, I would measure those if possible. People are frequently surprised about what they actually wanted (there are lots of genie stories and jokes on that theme)
reply