Off the top of my head: (uncompiled, untested)
const int angleIncrement = 1;
const int incrementDelay = 10;
for (int angle = 0; angle < 180; angle += angleIncrement) { // single "degree" increments
myServo.write (angle);
delay (incrementDelay); // so we'll take 10 * 180 milliseconds = 1.8 seconds for the traverse.
}
However, of course, this will only work for one servo.
For any more servos, you'll have to get rid of the delays, and introduce some arrays.