Not that I fully understand it, but this post <a href="https:&#x2F;&#x2F;golem.ph.utexas.edu&#x2F;category&#x2F;2008&#x2F;01&#x2F;the_continuation_passing_trans.html" rel="nofollow">https:&#x2F;&#x2F;golem.ph.utexas.edu&#x2F;category&#x2F;2008&#x2F;01&#x2F;the_continuatio...</a> establishes a connection between the Yoneda lemma and continuation-passing style, with C (well, C++) code.