Alex Rivera | Logout

Monad join function

Asked 2010-08-01T13:31:50.187
38

While monads are represented in Haskell using the bind and return functions, they can also have another representation using the join function, such as discussed here. I know the type of this function is M(M(X))->M(X), but what does this actually do?

Edit
Report

1 Answer

9

From the same page we recover this information join x = x >>= id, with knowledge of how the bind and id functions work you should be able to figure out what join does.

answered 2010-08-01T13:46:48.923

Your Answer