PureScript Edition
A set of challenges for jump starting your understanding of monads.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Again, create a Monad
instance for your Array
type. Import your Card
data constructor from Set 3. Using do syntax, implement the following functions:
allPairs :: forall a b. Array a -> Array b -> Array (Tuple a b)
allCards :: Array Int -> Array String -> Array Card
allCombs3 :: forall a b c d. (a -> b -> c -> d) -> Array a -> Array b -> Array c -> Array d