| 875 | } |
| 876 | |
| 877 | Result<TypeHolder> MinMaxType(KernelContext*, const std::vector<TypeHolder>& types) { |
| 878 | // T -> struct<min: T, max: T> |
| 879 | auto ty = types.front().GetSharedPtr(); |
| 880 | return struct_({field("min", ty), field("max", ty)}); |
| 881 | } |
| 882 | |
| 883 | Result<TypeHolder> FirstLastType(KernelContext*, const std::vector<TypeHolder>& types) { |
| 884 | auto ty = types.front().GetSharedPtr(); |