Declare and implement a function called arrayCount
.
arrayCount
takes two arguments: an array of Int
s, and a single Int
value.
It returns a count (as an Int
) of the number of times that the passed Int
argument appears in the array.
You're challenge is to write tests for this problem described above.
Stuck? You may find these lessons helpful: