Next returns the next key in lexicographic sort order. The method may only take a shallow copy of the Key, so both the receiver and the return value should be treated as immutable after.
()
| 1172 | // take a shallow copy of the Key, so both the receiver and the return |
| 1173 | // value should be treated as immutable after. |
| 1174 | func (k Key) Next() Key { |
| 1175 | return Key(BytesNext(k)) |
| 1176 | } |
| 1177 | |
| 1178 | // Next implements the Datum interface. |
| 1179 | func (d *DString) Next(_ *EvalContext) (Datum, bool) { |