This commit is contained in:
Simon Gardling
2023-03-25 12:07:20 -04:00
parent a9de6d5539
commit caba881a95
2 changed files with 4 additions and 7 deletions

View File

@@ -129,7 +129,7 @@ pub fn newtons_method(
/// Inputs `Vec<Option<T>>` and outputs a `String` containing a pretty representation of the Vector
pub fn option_vec_printer<T: ToString>(data: &[Option<T>]) -> String {
let formatted: String = data
.into_iter()
.iter()
.map(|item| match item {
Some(x) => x.to_string(),
None => "None".to_owned(),