. Include a type declaration for each value or function. 1. A function ‘duplicat
ID: 3862799 • Letter: #
Question
. Include a type declaration for each value or function.
1. A function ‘duplicates ‘ that takes a list and returns true if any two elements in the list are the same.
2. A list of pairs ‘rolls’ showing all the possible rolls of two six sided dice.
3. A function ‘counts’ that takes a list and returns a list of pairs, with each pair containing an element and the number of time it appears.
4. A list of pair ‘sums’, slowing how often each sum appears when rolling two six sided dice
how to solve this on emacs in haskell.
Explanation / Answer
main.hs
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.