Quantcast
Channel: Haskell Data and type declarations - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by chepner for Haskell Data and type declarations

A RiderResults value is not a list; it's a triple of an ability, a name and a list of times. You need to unpack that value first before you can sum up the times stored in the value.totalTime (Rider ab...

View Article



Haskell Data and type declarations

A bike race can be represented as a list of bike riders. Each rider is recorded with their ability class (High or Low), name, and the times in minutes that they finished in in each of their races, in...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images