ecrs 0.1.0-beta.4

Evolutionary computation tools & algorithms
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
pub fn print_generic_vector<T: std::fmt::Display>(vector: &Vec<T>) -> String {
    let mut text = String::from("");
    text += "[";
    for (index, value) in vector.iter().enumerate() {
        text += &value.to_string();
        if index != vector.len() - 1 {
            text += ", ";
        }
    }
    text += "]";
    text
}