Your first Erlang program, a recursive Fibonacci function.
第一个Erlang程序,一个递归的fibonacci函数。
Sometimes it's just not possible. Consider a Fibonacci function.
不过,有时候这并不可能。
A perfect way to see the benefits of the functional programming style, and how this works within Erlang, is to look at the Fibonacci function.
要想了解函数编程风格的好处以及它在Erlang中的实现方式,最好的方法是了解fibonacci函数。
If you played with the Fibonacci function from Section 6.7, you might have noticed that the bigger the argument you provide, the longer the function takes to run.
如果你试过了6.7中提到的斐波那契数列,你估计会发现随着参数增大,函数运行的时间也变长了。
In the Fibonacci sample given above, running the printfibo function in another process produced no useful return value.
在上述Fibonacci样例中,在另一个进程内运行printfibo函数不会得到有用的返回值。
The example he USES is a function that generates a Fibonacci sequence.
他当时使用的例子,就是用递归生成一个斐波那契数列。
The example he USES is a function that generates a Fibonacci sequence.
他当时使用的例子,就是用递归生成一个斐波那契数列。
应用推荐