Re: [boost] [Iterators] Iterators and higher-order programming

Mathias Gaunard wrote: -------------------------------------------------------------------- Message: 2 Date: Sun, 25 Apr 2010 12:33:51 +0100 From: Mathias Gaunard <mathias.gaunard@ens-lyon.org> To: boost@lists.boost.org Subject: Re: [boost] [Iterators] Iterators and higher-order programming Message-ID: <hr19av$sgp$1@dough.gmane.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Thomas Jordan a ?crit :
Hi, One of the interesting things about the iterators library, it seems to me, is the additional support it gives for higher-order, functional-style programming. For example, you can use the transform and filter iterators to produce a simple 'Comprehension' object which permits list-comprehension type of syntax to be used, instead of conventional loops
You might want to look at the range library then, which has been recently modified to add support for things like: some_range | transformed(f) | filtered(p) ----------------------------------------- Thanks/merci, Mathias (and apologies for my late reply), I am now looking at 1.43.0 Boost::Range! T.

Thomas Jordan a ?crit :
Hi, One of the interesting things about the iterators library, it seems to me, is the additional support it gives for higher-order, functional-style programming. For example, you can use the transform and filter iterators to produce a simple 'Comprehension' object which permits list-comprehension type of syntax to be used, instead of conventional loops
You might want to look at the range library then, which has been recently modified to add support for things like:
some_range | transformed(f) | filtered(p) ----------------------------------------- Thanks/merci, Mathias (and apologies for my late reply), I am now looking at 1.43.0 Boost::Range!
T.
If during your familiarisation you have any ideas especially regarding
documentation improvements, or additional features then please let me know. I am intending to add more tutorial documentation to easy initial familiarisation. I am aware that working straight from the reference material does make the initial learning experience more difficult than it ought to be. Regards, Neil Groves
participants (2)
-
Neil Groves
-
Thomas Jordan