Higher-order functions?

Jonas H. jonas at lophus.org
Tue Apr 10 16:13:17 PDT 2012


Hi everyone,

does D have any runtime higher-order function facilities? (I'm not 
talking about templates.)

More specifically, is something like this possible? (That's how I'd do 
it in Python)

car_prices = map(Car.get_price, list_of_cars)

car = new Car
foobar(car.get_price)

Thanks
Jonas


More information about the Digitalmars-d-learn mailing list