LUKE wrote:
> -module(tut1).
> -export([fac/1]).
>
> fac(1) ->
> 1;
> fac(N) ->
> N * fac(N - 1).
> ==================================
> How can i know the function will STOP at N=1?
The clauses are always tested in top-down order.
/Richard