Here is how map may be implemented in F Sharp. (At the very least, it is my attempt at implementing it!) You can run this in the interactive shell. #light;; let rec my_map fn xs = match xs with | first::rest -> (fn first) :: (my_map fn rest) | [] -> [] ;; [...]
CONTENTS
Meta