Watch
1
0
Fork
You've already forked advent-of-code
0

aoc prelude

This commit is contained in:
Jeremy Kaplan 2022-12-07 23:05:00 -08:00
commit c18cfa45a4
4 changed files with 10 additions and 3 deletions

7
2022/src/lib.rs Normal file
View file

@ -0,0 +1,7 @@
pub fn split_lines(s: &str) -> Vec<&str> {
s.trim_end().split('\n').collect()
}
pub fn split_words(s: &str) -> Vec<&str> {
s.split(' ').collect()
}