| 154 | /// Helper function to create a lazy range from a callable (e.g. lambda) and length |
| 155 | template <typename Generator> |
| 156 | LazyRange<Generator> MakeLazyRange(Generator&& gen, int64_t length) { |
| 157 | return LazyRange<Generator>(std::forward<Generator>(gen), length); |
| 158 | } |
| 159 | |
| 160 | /// \brief A helper for iterating multiple ranges simultaneously, similar to C++23's |
| 161 | /// zip() view adapter modelled after python's built-in zip() function. |
no outgoing calls