dahbka-lis commented on code in PR #47815:
URL: https://github.com/apache/arrow/pull/47815#discussion_r2513706149


##########
cpp/src/arrow/util/range.h:
##########
@@ -44,6 +44,14 @@ std::vector<T> Iota(T length) {
   return Iota(static_cast<T>(0), length);
 }
 
+/// Create a vector containing the values from start with length elements
+template <typename T>
+std::vector<T> Iota(T start, size_t length) {
+  std::vector<T> result(length);
+  std::iota(result.begin(), result.end(), start);
+  return result;
+}

Review Comment:
   > Can we call this in
   
   The `stop` border not included, so for `fields.size() == 128`, 
`Iota<int8_t>(0, 128)` is called and 128 is converted to -128.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to