| 249 | |
| 250 | template <typename T> |
| 251 | Transformer<T, T> MakeFirstNGeneric(int n) { |
| 252 | int remaining = n; |
| 253 | return [remaining](T next) mutable -> Result<TransformFlow<T>> { |
| 254 | if (remaining > 0) { |
| 255 | remaining--; |
| 256 | return TransformYield(next); |
| 257 | } |
| 258 | return TransformFinish(); |
| 259 | }; |
| 260 | } |
| 261 | |
| 262 | TEST(TestIteratorTransform, Truncating) { |
| 263 | auto original = VectorIt({1, 2, 3}); |
nothing calls this directly
no test coverage detected