adventofcode-0.1.0.0: Haskell solutions to adventofcode
LicenseMIT
Maintainer@tylerjl
Safe HaskellSafe-Inferred
LanguageHaskell2010

Y2015.D02

Description

Solutions to the day 02 set of problems for adventofcode.com.

Synopsis

Documentation

data Present #

Represents a present in three dimensions

Constructors

Present Int Int Int 

Instances

Instances details
Show Present # 
Instance details

Defined in Y2015.D02

Eq Present # 
Instance details

Defined in Y2015.D02

parsePresents #

Arguments

:: Text

Raw input of present dimensions

-> Maybe [Present]

Possible list of Presents

Parse presents from an input string

surfaceArea #

Arguments

:: [Present]

List of Presents

-> Int

Total surface area of all Presents

Find total surface area from list of Presents

ribbonLength #

Arguments

:: [Present]

List of Presents

-> Int

Total length of required ribbon

Find required length of ribbon for a list of presents.