ecrs 0.1.0-beta.4

Evolutionary computation tools & algorithms
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![allow(dead_code)]

use std::{collections::HashSet, fmt::Display};

pub fn print_hash_set<T: Display>(set: &HashSet<T>) {
    for elem in set {
        print!("{elem}, ");
    }
    println!();
}

pub fn print_slice<T: Display>(slc: &[T]) {
    for elem in slc {
        print!("{elem}, ");
    }
    println!();
}