$$\hat{y}_{T+h|T} = y_T$$ Hyndman & Athanasopoulos, FPP 3rd ed., Sec. 5.2: "we simply set all forecasts to be the value of the last observation".
Examples
Naivefc(c(1, 2, 3, 5), 3)$estimate
#> [1] 5 5 5
$$\hat{y}_{T+h|T} = y_T$$ Hyndman & Athanasopoulos, FPP 3rd ed., Sec. 5.2: "we simply set all forecasts to be the value of the last observation".
Naivefc(c(1, 2, 3, 5), 3)$estimate
#> [1] 5 5 5