Write a function map


Write a function map : ('a -> 'b) -> 'a list -> 'b list that is an implementation of the List.map function using only List.fold_left or List.fold_right.

Example: map succ [1;2;3] = [2;3;4].

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Write a function map
Reference No:- TGS0137957

Expected delivery within 24 Hours