L1 Introduction
L1 Introduction
Lecture_Module 1
Introduction to Functional and
Logic Programming
• procedural
• applicative languages.
Procedural (imperative)
languages
f : Domain -->Range
where
Domain = {a, b, c}
Range = { p, q, r}
f(a) = r;
f(b) = p;
f(c) = q
Graphical representation
f
a p
b q
c r
cube(X) = X * X * X