Perl Seq: Three ways of doing Fibonacci
Hi there, I am developing a new Perl module to bring a lazy Sequence to Perl.
It should provide the functionaly you see in C# LINQ or Java 8 Stream. The origin of those interfaces comes from functional programming. Thus i decided to primarily pick the F# API and port it to Perl.
I already implemented a useful set of functions. Here is an example of the module and what you can do with it. Source code of my Seq Module can be found at GitHub so far.
When i have written more functions and documentation i will release it to CPAN.
First solution
|
|
Second Solution
|
|
Third Solution
|
|
Bonus: My concat implementation
|
|