(* Assume that we execute the following assignment statements: *) let width = 17;; let height = 12.0;; let delimiter = '.';; (* For each of the following expressions, write the value of the expression and the type (of the value of the expression). *) width/2;; width/.2.0;; height/3;; 1 + 2 * 5;; delimiter * 5;; (* A palindrome is a word that is spelled the same backward and forward, like “noon” and “redivider”. Recursively, a word is a palindrome if the first and last letters are the same and the middle is a palindrome. The following are functions that take a string argument and return the first, last, and middle letters: *) let first_char word = word.[0];; let last_char word = let len = String.length word - 1 in word.[len];; let middle word = let len = String.length word - 2 in String.sub word 1 len;; middle "";; let (+:) a b = String.concat " " [a; b];; "Alpha" +: "Beta";;