如何查看客户?haskell monad案例
case e of
Just e -> let client = (e, sink)
Nothing -> let client = false
case msg of
_ | not client -> do nothing
| msg -> do something
| otherwise -> do print "i was born in..."
可能没有接近,但希望它清楚我想做什么。
它叫做monad,不是游牧民族。 – Femaref 2012-07-28 17:58:05
doh! :)我有一种感觉,这将是一个复杂的答案 – 2012-07-28 18:03:43