day_19

Types

pub type Color {
  White
  Blue
  Black
  Red
  Green
}

Constructors

  • White
  • Blue
  • Black
  • Red
  • Green

Functions

pub fn check_design(
  towels: List(List(Color)),
  design: List(Color),
) -> Bool
pub fn get_design_combinations(
  towels: List(List(Color)),
  design: List(Color),
  current_combination: List(List(Color)),
) -> List(List(List(Color)))
pub fn main() -> Nil
pub fn parse_color(char: String) -> Result(Color, Nil)
pub fn parse_combination(
  raw_combination: String,
) -> Result(List(Color), Nil)
pub fn parse_input(
  lines: List(String),
) -> #(List(List(Color)), List(List(Color)))
pub fn startswith(
  base_list: List(a),
  compare_list: List(a),
) -> Bool
Search Document