Question: Do Exercise 9 . 1 3 on p . 1 4 5 of your text. The type of the function is [ Bool ] -
Do Exercise on p of your text. The type of the function is Bool Integer. Notice the restrictions on this function at the beginning of the exercises. Try your function out on truecount True False, True, Falsel, truecount False
True, Falsel
Turn in a listing of the function and the results of the test run.
Exercise Write a function truecount of type bool list int that takes a list of boolean values and returns the number of trues in the list.
write the code and show the output
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
