sln_2022_05
Copyright(c) Eric Mertens 2022
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellNone
LanguageHaskell2010

Main

Description

https://adventofcode.com/2022/day/5

>>> :{
:main +
    "    [D]    \n\
    \[N] [C]    \n\
    \[Z] [M] [P]\n\
    \ 1   2   3 \n\
    \\n\
    \move 1 from 2 to 1\n\
    \move 3 from 1 to 3\n\
    \move 2 from 2 to 1\n\
    \move 1 from 1 to 2\n"
:}
CMZ
MCD

Documentation

main :: IO () Source #

apply :: Ord k => ([a] -> [a] -> [a]) -> Map k [a] -> (Int, k, k) -> Map k [a] Source #