-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Closed
Labels
kind: questionsolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
Description
for example
struct Item {
std::vector<int> array1;
std::vector<int> array2;
};
Item {
.array1 = {1, 2, 3};
.array2 = {1, 2, 3};
};
std::string func1(int i) { return std::string("a") + std::to_string(i + i); }
std::string func2(int i) { return std::string("b") + std::to_string(i * i); } during serialize, I want to apply func1 to each element of array1, apply func2 to each element of array2, so the json will become
{
"array1": [ "a2", "a4", "a6" ],
"array2": [ "b1", "b4", "b9" ]
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind: questionsolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation