Dear Steven,
i am reading throught the meep source code , including the haskell part. As a
newbie of haskell,
it is really difficult to understand this part.
Such as:
----------------------
newtype CC a = CC (FiniteMap String Bool -> (FiniteMap String Bool, a))
instance Monad CC where
(CC a) >>= b = CC f where f st = let (st', x) = a st
CC bb = b x
in bb st'
return a = CC $ \st -> (st, a)
-----------------------
could you explain these code a little?
Thanks a lot._______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss