mirror of
https://github.com/kmc7468/cs220.git
synced 2025-12-16 06:58:45 +00:00
Cleanups
This commit is contained in:
@@ -47,7 +47,8 @@ where
|
||||
}
|
||||
|
||||
/// Returns and iterator over the generic fibonacci sequence starting from `first` and `second`.
|
||||
/// This is a generic version of `fibonacci` function, which works for any types that implements `std::ops::Add` trait.
|
||||
/// This is a generic version of `fibonacci` function, which works for any types that implements
|
||||
/// `std::ops::Add` trait.
|
||||
pub fn fib<T>(first: T, second: T) -> impl Iterator<Item = T>
|
||||
where
|
||||
T: std::ops::Add<Output = T> + Copy,
|
||||
|
||||
Reference in New Issue
Block a user