User loginNavigation |
Question about the Monad associativity lawA really dump question... The associativity law states (using Haskell syntax): m >>= (\x -> k x >>= h) = (m >>= k) >>= h What I don't understand is why "bind" can be associative. One use of monad is to encapsulate side-effects. And the order of operations is important when there are side-effects. If so, why does associativity hold? By sciomako at 2007-09-11 03:58 | LtU Forum | previous forum topic | next forum topic | other blogs | 9094 reads
|
Browse archives
Active forum topics |
Recent comments
22 weeks 6 days ago
22 weeks 6 days ago
22 weeks 6 days ago
45 weeks 19 hours ago
49 weeks 2 days ago
50 weeks 6 days ago
50 weeks 6 days ago
1 year 1 week ago
1 year 6 weeks ago
1 year 6 weeks ago