You can use a function lambda: auto fp = (real a) => cos(a);Note, I had to put (real a) even though I would have expected "a => cos(a)" to work.-Steve
Interesting. You have to put real because there is also a float and double version of cos.
jmh530 via Digitalmars-d-learn Wed, 08 Jul 2015 14:06:12 -0700
You can use a function lambda: auto fp = (real a) => cos(a);Note, I had to put (real a) even though I would have expected "a => cos(a)" to work.-Steve
Interesting. You have to put real because there is also a float and double version of cos.