Returning a value from a function in prolog
<p>How do we return a value from a Prolog function that takes only one argument? Ex. <code>leaf(V)</code> is a function which should return a value <code>V</code> and it is called from a function <code>tree(leav(V), sum)</code>?</p>