
Joel de Guzman
So MPL is not sequence preserving after all.
It really depends what you mean by "sequence preserving." If it
returned the same type, it couldn't really do anything. So you have
to decide how many guarantees you're going to give about the result
type. Andy wants it to be spelled as a specialization of the same
template, so transform operating on mpl::vector
transform merely returns a sequence with the same properties as the original. This makes perfect sense. In Fusion, algorithms are not sequence preserving by design. However, we do have conversion functions/metafunctions to get a *true* vector/list/set/map from an arbitrary sequence.
No, I don't think that would satisfy Andy, because you're surely not
guaranteeing that the result type will be spelled
fusion::list