Replace range operators with stride function