Functions and Nested Calls


Functions and Composition


Expressivity of Functions and Nested Calls

Problem: Alice in Wonderland

Once the hatter expressed his believe that the hare does not believe that all three (the hatter, the hare and the dormouse) are sane. The dormouse also believes that the hare is sane. What is the mental state of these three friends?. (One accepts that sane people tell the truth while mad people always lie).
Try to solve it in your favourite language before you check the solution in a functional logic language

Functions and Nested Calls - Implementation

Narrowing strategy