Sha256: b3554e93a4732a091526a4484ee202b92005462782f6dc8bf781599d310722f2
Contents?: true
Size: 560 Bytes
Versions: 377
Compression:
Stored size: 560 Bytes
Contents
## Hints To complete this exercise you need to implement the function `score`, that takes a sequence of bowling *rolls* and returns the final score or the appropriate error: ```haskell score :: [Int] -> Either BowlingError Int data BowlingError = IncompleteGame | InvalidRoll { rollIndex :: Int, rollValue :: Int } deriving (Eq, Show) ``` You will find these definitions already in place, but it is up to you to define the function. Keep in mind that the test suite expects the rolls to be numbered starting from zero.
Version data entries
377 entries across 377 versions & 1 rubygems