Before revision: Logic programming can be viewed as a generalisation of functional programming, in which functions are a special case of relations.For example, the function, mother(X) = Y, (every X has only one mother Y) can be represented by the relation mother(X, Y).
After revision: Relationship with functional programmingLogic programming can be viewed as a generalisation of functional programming, in which functions are a special case of relations.For example, the function, mother(X) = Y, (every X has only one mother Y) can be represented by the relation mother(X, Y).