Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

. 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