Closed msrd0 closed 2 years ago
The signature of fold_many0
was changed to take a function that returns the initial value, instead of taking the initial value directly. So we could write || BTreeMap::new()
, which is equivalent to BTreeMap::new
. I don't exactly know why they changed that, but I assume there is a case in which that function doesn't get called.
Thanks!
That's an interesting diff, why does it take the constructor function itself now?