New Algorithms - A Functional Perspective
Explore how modern C++ parallel algorithms relate to functional programming concepts found in Haskell. Learn about key functions like map, foldl, foldl1, scanl, and scanl1 and their use in algorithm composition. Understand how these paradigms apply in C++ concurrent algorithms through practical examples and functional perspectives.
We'll cover the following...
We'll cover the following...
All new functions have a pendant in the purely functional language Haskell.
| Functions | Haskell |
|---|---|
std::for_each_n |
map |
std::exclusive_scan |
scanl |
std::inclusive_scan |
scanl1 |
std::transform_exclusive_scan and std::transform_inclusive_scan |
composition of map and |