sln_2015_16
Copyright(c) Eric Mertens 2021
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellNone
LanguageHaskell2010

Main

Description

https://adventofcode.com/2015/day/16

We're given facts about a bunch of different Sues and asked to check which one matches what we know about the one true Sue.

Synopsis

Documentation

main :: IO () Source #

matchesClues1 :: [(String, Int)] -> Bool Source #

Predicate for properties that match exactly.

matchesClues2 :: [(String, Int)] -> Bool Source #

Predicate like matchesClues1 but with special cases for cats, trees, pomeranians, and goldfish.

matcher Source #

Arguments

:: (String -> Int -> Int -> Bool)

comparison selector

-> [(String, Int)]

list of properties

-> Bool

properties match clues

Match a list of properties against the known hints.

clues :: String -> Int Source #

Returns the given hint value for each property.