Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 336 Bytes

File metadata and controls

41 lines (31 loc) · 336 Bytes

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