Skip to content

A single header file containing container utils such as fmap, flatmap, filter, group_by and a generic container-to-string with show.

License

Notifications You must be signed in to change notification settings

XDracam/simple_mapreduce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A single header file containing container utils such as fmap, flatmap, filter, group_by and a generic container-to-string with show.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published