Define roll2Int which sums a Dice type value to an Integer. It may be helpful to write a helper function which converts Die values to Integers first.

Learning Goal: I’m working on a haskell question and need an explanation and answer to help me learn. {-1a) Define checkStrings which checks whether two supplied strings are the same. (1 mark) checkStrings “same” “same” == True checkStrings “same” “not” == False -} checkStrings::String -> String -> Bool checkStrings = undefined {-1b) Define checkNum which… Continue reading Define roll2Int which sums a Dice type value to an Integer. It may be helpful to write a helper function which converts Die values to Integers first.

Published
Categorized as Haskell