Function powMap

Maps a forward range to a power determined at runtime. ExpType is the type of the exponent. Using an int is faster than using a double, but obviously less flexible.

PowMap!(ExpType,T) powMap(ExpType, T) (
  T range,
  ExpType exponent
);