destructive repeat/clamp for Int, use raise