Using the lift operator to write a custom operator