刚在搜erlang实现fibonacci方法的时候,看到wiki上这么一页:http://en.wikibooks.org/wiki/Fibonacci_Number_Program
列举了不同语言实现fibonacci数列计算的方法,每种语言都有各自的表达方式,可到了perl6这,就这么一句:
1,1...&[+]
无语了。。
不过话说perl6这玩意是夭折了吗?我上学那会儿就听说perl6要来了,还帮助翻译过perl6的文档,现在怎么没见有人用呢?
就这么一句?
1,1…&[+]
就这么一句?就这么一句?就这么一句?
Sequence limit cannot be a multi-sub or multi-method
无语了。
Name (required)
Mail (will not be published) (required)
Website
就这么一句?
1,1…&[+]
就这么一句?就这么一句?就这么一句?
Sequence limit cannot be a multi-sub or multi-method
无语了。