How do I use Agda's implementation of delimited continuations?
问题 We can implement a delimited continuation monad in Agda rather easily. There is, however, no need to, as the Agda "standard library" has an implementation of a delimited continuation monad. What confuses me about this implementation, though, is the addition of an extra parameter to the DCont type. DCont : ∀ {i f} {I : Set i} → (I → Set f) → IFun I f DCont K = DContT K Identity My question is: why is the extra parameter K there? And how would I use the DContIMonadDCont instance? Can I open it