Currently, my code looks like this:
fun gradImage () =
let val iImg = Gdimage.image(640,480) (0,0,0);
val void = mapi gradient iImg;
in
Gdimage.toPng iImg "gradient.png"
end;
mapi is a function with type intint->intint*int->image->unit. Essentially it operates on the image supplied.
The function looks ugly with val void = ...
How could I eliminate that?