| 130 | |
| 131 | template <typename T> |
| 132 | std::string ToString(const std::optional<T>& o) { |
| 133 | return o.has_value() ? ToChars(*o) : "(nullopt)"; |
| 134 | } |
| 135 | |
| 136 | /// \param stop User-provided stop or the length of the input list |
| 137 | int64_t ListSliceLength(int64_t start, int64_t step, int64_t stop) { |