Reimplemented id apply to use the functor.