Ruby-style "each" in D?
bearophile
bearophileHUGS at lycos.com
Thu Mar 20 17:33:56 PDT 2014
monarch_dodra:
I have just given some solutions in D.learn.
> So here's what I'm thinking: Let's do this, but also using
> each/tee/tap/consume/walk (and others?)!
>
> I think this "real world" scenario is a good bench for seeing
> the effects of mixing imperative-style statements into a
> functional-style wrapper.
As I explained in a precedent post in this thread it's hard to
design something if you don't try to use it, even something
simple as a each(). So I approve such exercises.
Bye,
bearophile
More information about the Digitalmars-d
mailing list