function set(dest, source) {
  dest[0] = source[source.length - 2];
  dest[1] = source[source.length - 1];
  return dest;
}
@param {number[]} dest
@param {ReadonlyArray<number>} source
@returns {number[]}