The Monad Challenges

PureScript Edition

A set of challenges for jump starting your understanding of monads.

Outline

Set 1: Random Numbers

Set 2: Failing Computations

Set 3: Combinations

Set 4: Common Abstraction

Set 5: Do Notation

MCPrelude documentation

This project is maintained by shaunplee and is a fork of the Monad Challenges maintained by mightybyte

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Set 3: Combinations

In this set we are going to investigate lists. As usual, make sure you start with the standard block of header code we’ve been using for these challenges. If you don’t do this, you might inadvertently solve these problems in a way that misses the whole point of the exercise.

  1. Generating combinations
  2. Poker hands
  3. Generalizing pairs and cards
  4. Combinations of three things
  5. Combinations of more things

Previous Page - Next Page