Skip to content

ObjectBoxPC/fibiter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fibiter

Simple iterators in Rust that give Fibonacci numbers and other Lucas sequences

Examples

let f = fibiter::fibonacci();

for x in f.take(5) {
	println!("{}", x);
}

Output:

1
1
2
3
5
let l = fibiter::lucas_numbers();

for x in l.take(5) {
	println!("{}", x);
}

Output:

2
1
3
4
7

About

Simple iterators in Rust for Fibonacci numbers and other Lucas sequences

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages