Boost logo

Boost :

Subject: Re: [boost] [Iterators] Iterators and higher-order programming
From: Thomas Jordan (thomasjordan_at_[hidden])
Date: 2010-05-07 05:04:15


Mathias Gaunard wrote:
--------------------------------------------------------------------
Message: 2
Date: Sun, 25 Apr 2010 12:33:51 +0100
From: Mathias Gaunard <mathias.gaunard_at_[hidden]>
To: boost_at_[hidden]
Subject: Re: [boost] [Iterators] Iterators and higher-order
programming
Message-ID: <hr19av$sgp$1_at_[hidden]>
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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk