Follow

-of-code

First star got !

Code can bet inspected at github.com/fenax/advent-of-cod

pub fn process(input: &String) -> i32{
input.split('\n').map(|x| x.trim())
.map(|x| -> i32 {x.parse().unwrap_or(0)}).sum()
}

Sign in to participate in the conversation
River Mastodon

Some otter's Mastodon. Managed by @kasil.