On 22.12.2008, at 12:01, Robert Feldt wrote:

> I'm playing around with different designs to implement VM's (in a
> functional style). Think for parsing, FSM etc.

This sounds like the perfect application for the state monad - see  
the random number examples in

        http://groups.google.com/group/clojure/web/monads.clj

In the state monad, you compose state-transforming computations and  
obtain as a result a single function from the initial state to the  
final state plus the result of the computation.

Konrad.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to