now that yall are continuation experts from the video call, wondering if there is a trick to get two separate continuations to share a piece of state. given continuation k i'd like to transform it into k' such that k' must be called twice before it runs k
now that yall are continuation experts from the video call, wondering if there is a trick to get two separate continuations to share a piece of state. given continuation
k
i'd like to transform it intok'
such thatk'
must be called twice before it runsk
eg
k () = print "hello"
,k' = ??? k
, thenk' () >> print "yo" >> k' ()
should result in"yo", "hello"
but also without using ST or IO