Comment by emmelaich

9 years ago

More abstractly, I enjoyed a description of a text editor in a Categories for Computer Science class I took waay back.

It's two stacks head to head. Moving the cursor is popping on one and and pushing on the other. All the other operations were given too. There were the category diagrams and everything -- the meat of which I've forgotten but I might be able to find if anyone is interested.

I'd be interested. Using two stacks is a nifty technique.