Compiles a simple comparison to an anonymous subroutine
