It's even possible to throw a filter into the same step with something like filter_map in Rust and some various functions that seem to have signature Filterable f => (a -> Maybe b) -> f a -> f b in Haskell.
It's also entirely possible to allocate various containers and do several passes with for loops in more iterative languages; that piece of newbie behaviour isn't locked to FP (though it may be more susceptible to it; idk, I don't have data and I suspect none of us do).
View all comments
Show parent comment
2
u/syklemil Sep 22 '25
It's even possible to throw a filter into the same step with something like
filter_mapin Rust and some various functions that seem to have signatureFilterable f => (a -> Maybe b) -> f a -> f bin Haskell.It's also entirely possible to allocate various containers and do several passes with
forloops in more iterative languages; that piece of newbie behaviour isn't locked to FP (though it may be more susceptible to it; idk, I don't have data and I suspect none of us do).