hashedone / advent-of-code-2019-rust

Solutions of Advent of Code 2019 in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This year I decided to contribute in Advent of Code trying myself in two languages: Rust which is for now my main language, and Haskell, which I try to learn this way (find my Haskell solutions here).

For Rust solutions I decided to:

  • solve them using async/await for IO (just to check how they work for such cases);
  • in as most "functional" way I can.

I also decided to document my progress of Rust solutions way of think.

Rust framework

To make this simple I created simple framework in my main.rs, so every solution should have entry point signature:

async fn solution(
    input: impl async_std::stream::Stream<Input=impl std::str::FromStr>
) -> impl std::fmt::Display;

Input data would be parsed line-by-line, and output data would be just printed out.

Solutions

About

Solutions of Advent of Code 2019 in Rust

License:MIT License


Languages

Language:Rust 100.0%