55
edits
Changes
no edit summary
These algorithms provide a ''functional'' way to work on collections, and are present in several programming languages. These algorithms replace what usually would be a for/while loop, shifting the attention from "how to loop" to "what to do".
<codepre>
#include <iostream>
#include <algorithm>
return 0;
}
</codepre>
Output: