UNB/ CS/ David Bremner/ teaching/ cs4613/ lectures/ Lecture 6: substitution and functions