I\'m trying to make a little function to interpolate between two values with a given increment.
[ 1.0 .. 0.5 .. 20.0 ]
The compiler tells m
You can also write a relatively simple function to generate the range:
let rec frange(from:float, by:float, tof:float) = seq { if (from < tof) then yield from yield! frange(from + by, tof) }
Using this you can just write:
frange(1.0, 0.5, 20.0)