Question: use ocaml language .. write a function to count same element in a law in the list. your count function should satisfy the following sample

use ocaml language .. write a function to count same element in a law in the list. your count function should satisfy the following sample running

for eaxample

# count [1;1;2;2;2;3];;

- : int = 3

# count [2;2;2];;

-: int = 2

# count [3;3;4;4;4;4;2;2];;

- : int = 5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!