Generics and const generics in Rust
Normally we write a function or any user-defined type for solving a particular task by accepting Concrete type i.e the type is known when we pass it to them.
fn sum_i32(i: &[i32]) -> i32 {
i.iter().sum()
}
fn sum_f32(i: &[f32]) -> f32 {
i.ite...
sanjeevi.hashnode.dev10 min read