.. highlight:: c A lazy sum -------------- Here is a little functional `sum` that sums a function f over various domains and accepts lazy expressions as arguments. .. literalinclude:: src/sum_functional.cpp The output is: .. literalinclude:: src/sum_functional.output