...one of the most highly
regarded and expertly designed C++ library projects in the
world. — Herb Sutter and Andrei
One of the most interesting capabilities of FC++ is the generation of infinite lazy lists which are evaluated only at need. The most simple example of this is
which returns the generator for integers 1,2,3,..... infinity.
returns a list of the first 4 of the list.
returns the fourth member using zero indexed access. Both of the lists returned are lazy and only evaluated when the list members are accessed.