Created
March 18, 2015 22:20
-
-
Save krzkaczor/62b640f16c0aa98fb2e0 to your computer and use it in GitHub Desktop.
functional programming in c++
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string Individual::toString() { | |
return accumulate(this->genome->begin(), this->genome->end(), string(), [](const string& acc, int x) { | |
return acc + " " + to_string(x); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment