In Momento [spoiler alert] the end revealed that the MC had written messages on himself (and maybe other places?) to lead him to the truth about the IC/antag/whichever he was. He did know exactly what the IC/antag would do all along and at the end, which was a big moment of 'I knew all along revelation' concept to the audience.. He just couldn't remember ongoing because of the brain injury. It was quite clever.
An occasional romance short story might have used that format, being a cute, fun and fast reveal at the end. It seems familiar.
Angel Heart with Micky Rourke and DeNiro might be close, with De Niro's character's self-satisfaction at the end. I can't remember if he said it, but for sure he indicated it to the audience.
George Burns seemed to have that kind of wind-up with their routines...but remember the brains of the duo was Gracie in real life. So, she wrote it.
The Road Runner in the cartoons.
The Usual Suspects because of the end scene.