(* TODO: Implement the missing cases of subst. *)
let rec subst ((e, x) as s) exp =
match exp with
| Var y ->
Copyright By Assignmentchef assignmentchef
if x = y then e
(* Applying a list of substitutions to an expression, leftmost first *)
let subst_list subs exp =
List.fold_left (fun exp sub -> subst sub exp) exp subs
CS: assignmentchef QQ: 1823890830 Email: [email protected]

![[SOLVED] CS (* TODO: Implement the missing cases of subst. *)](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip.jpg)

![[Solved] Python program that plays a guess-the-number game with magic lists](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip-1200x1200.jpg)
Reviews
There are no reviews yet.