Net Direction of Chemical Change
Example
A
with
What will happen as the system moves towards equilibrium?
solution
Since
Needs heat to go forward: endothermic
Gives off heat when going forward: exothermic
def factory(t: Int) = {
def closure(add: Int) = {
param + add
}
closure
}
val five = factory(5)
val four = factory(4)
five(1) // 6
five(2) // 7