Conversation

Replying to and
At first blush I think not really, tho I suppose it depends what you want S to do/mean. I’m currently thinking of it as a literal environment, so that S -> A is the variable lookup function partially applied to a specific name; scoping is thus programmable.
1
1
Plus if you pass it out via the output continuation then you’ve got the state monad which seems pretty interesting. I spent a chunk of the day trying to turn (S -> -) and (- -> R) into an adjunction when really it was the usual currying one all along.
1
1
Show replies