Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Assignment #8 In a word document answer the following questions: 1. Describe a Monad in your own understanding of the concept (At least 2 paragraphs. Each paragraph must have at least 5 sentences. 50 points) Monad is use to mathematical computations in terms of values and sequences. Monads allow programmers to build up sequence computations. It is also determines how combined computations form a new computation it helps programmers to code. A monad is a constructor It has a function called bind and return when the two is combined it can produce more computations. The bind function separate steps and take the output to previous steps then put it into the next step. Monad has different classes that we can use in coding. The error, list, reader, writer and state monads this will help programmers have faster coding and fewer errors. Monads is composable computation. It also can carry extra data and it’s one output that will produce when debug. Monads also supplementing pure calculations with I/O and common environment. 2. In your own words summarize "Why Haskell is great?" (At least 2 paragraphs. Each paragraph must have at least 5 sentences. 50 points) Haskell is great because it is functional programming. Haskell also very easy to code because it has fewer steps. Haskell is great especially in mathematical computations. It’s easy to code because the idea almost remain the same. It also has smart garbage collector this means every program is easily destroyed. Haskell as a whole is a great language it is consistent and very easy to understand.