-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
So now that std::pair is supported, it would be great to be able to have different delimiters at the start/end of sequences in addition to between the elements of a sequence, so a list of tuples might be rendered like:
(1, 2, 3), (3, 2, 1), ....
Otherwise there's no way to distinguish this:
list<int> ints ({1, 2, 3, 4, 5, 6})
cout << concat (separator (","), ints) << "\n";
from this:
list<pair<int, int>> pairs ({{1, 2}, {3, 4}, {5, 6});
cout << concat (separator (","), pairs) << "\n";
I think you're trying to keep things simple, so perhaps this is a feature too far.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels