export function attachRight(x: Function, ...suffix: any[]): Function {
  return (...args: any[]) => x(...args, ...suffix);
}