Lazy Code (c++)

Cute and Efficient Is Definitely Possible

  • Compossible, lazily evaluated generators such as map, filter, fold, enumerated ranges and more.
  • Easy handling of input and output streams, reading line by line, parsing objects, etc.
  • Compact syntax: Choice between * Functional fold(…,map(…,filter(…))) * Piped filter(…) | map(…) | fold(…)
  • Zero cost abstractions leveraging C++ templates, no macros involved.
  • Easily create new generators and integrate with existing ones.
  • Optionally enabled macros to make the syntax even more cute.

[HN]

Written on December 28, 2018, Last update on December 28, 2018
c++ functional