Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 808 Bytes

File metadata and controls

19 lines (10 loc) · 808 Bytes

Simple map/reduce header for C++ client side code

This is a small project that should help me learn more about C++, but I'm putting it here since it might be helpful for new people coming from a more functional background, such as haskell or scala.

The single header file contains a number of basic commodities, which work on a range of containers, such as fmap, flatmap, filter, group_by and a generic container-to-string with show.

It also features a few macros to provide a more convenient lambda syntax for the easiest cases.

Any suggestions, improvements, issues and pull requests are greatly appreciated.

Compatibility

This code compiles only with VSC2017 with experimental C++ features enabled. Clang can't handle constexpr lambdas yet, while GCC can't even use unicode.