Naming of `chained(with:)`

Could you specify which precedents? RangeReplaceableColleciton.append(_:) is mutating, so it doesn't return anything, and as noted Publisher.append(_:) returns a different type. Is there something I'm missing?

I ask because I actually have the opposite reaction.To me, it seems like the idiomatic pattern in Sequence methods is to return a transformed type when doing so makes sense (e.g. PrefixSequence, DropWhileSequence).

3 Likes