open Types open Format let string_of_const = function True -> “true” | False ->”false” | Int n -> string_of_int n let string_of_op = function Plus…
CS576 Assignment 2 Instructor: Parag Havaldar Assigned – Monday 02/22/2021 Solutions due – Wed 03/10/2021 by 10 am morning Late Policy – NONE Question1: Color…
let max = fun x -> fun y -> if app app (>) to x to y then x else y in let max12 =…
open Types exception ImplementMe type token = TRUE | FALSE | NUM of int | FUN | VAR of string | ARROW | LET |…
open Types open Print let rec rename_value x x’ v = match v with | Const _ -> v | Fun (x”, e) -> if…
CS1027 ASSIGNMENT 2 Computer Science Fundamentals II This assignment is due on Thursday, March 4th, 2021 by 11:55pm. See the bottom of this document for…
type const = True | False | Int of int type var = string type op = Plus | Minus | Times | Div |…
let x = fun x -> app (*) to x in let y = fun y -> app x to y in let z =…
STAT240 D100 Spring 2021 SFU Midterm This midterm exam consists of 3 problems. All aspects of the midterm exam must be handed in through crowdmark.…
let three = app app (+) to 2 to 1 in let two = app app (-) to 5 to three in let six =…