[SOLVED] CS (* TODO: Implement the missing cases of subst. *)

$25

File Name: CS_(*_TODO:_Implement_the_missing_cases_of_subst._*).zip
File Size: 489.84 KB

5/5 - (1 vote)

(* 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]

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CS (* TODO: Implement the missing cases of subst. *)
$25