has_association
for stacks as defined in the previous exercise:
// Exercise 2.20
let rec has_association env sym =
match env with
EmptyEnv -> false
| ExtendedEnv (syms, vals, env') -> (List.mem sym syms) ||
(has_association env' sym)
Smalltalk about code and programming languages, especially functional ones
has_association
for stacks as defined in the previous exercise:
// Exercise 2.20
let rec has_association env sym =
match env with
EmptyEnv -> false
| ExtendedEnv (syms, vals, env') -> (List.mem sym syms) ||
(has_association env' sym)
No comments:
Post a Comment