This commit is contained in:
unintendedfraud
2023-12-11 23:04:46 +01:00
parent a3b939d284
commit bda434f2cc
4 changed files with 286 additions and 1 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ pub fn get_data(path: &str) -> Vec<String> {
return lines;
}
pub fn get_numbers_from_str(s: &str, delimiter: &str) -> Vec<usize> {
pub fn get_numbers_from_str<I32>(s: &str, delimiter: &str) -> Vec<i32> {
return s
.split(delimiter)
.filter(|x| !x.is_empty())