MCPcopy Create free account
hub / github.com/apache/arrow / MakeFirstN

Function MakeFirstN

cpp/src/arrow/util/iterator_test.cc:239–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239Transformer<TestInt, TestStr> MakeFirstN(int n) {
240 int remaining = n;
241 return [remaining](TestInt next) mutable -> Result<TransformFlow<TestStr>> {
242 if (remaining > 0) {
243 remaining--;
244 return TransformYield(TestStr(next));
245 }
246 return TransformFinish();
247 };
248}
249
250template <typename T>
251Transformer<T, T> MakeFirstNGeneric(int n) {

Callers 1

TESTFunction · 0.85

Calls 3

TransformYieldFunction · 0.85
TestStrClass · 0.85
TransformFinishClass · 0.85

Tested by

no test coverage detected