-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
14 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /><title>Y2023.D01</title><link href="linuwial.css" rel="stylesheet" type="text/css" title="Linuwial" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script type="text/x-mathjax-config">MathJax.Hub.Config({ tex2jax: { processClass: "mathjax", ignoreClass: ".*" } });</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><span class="caption">adventofcode-0.1.0.0: Haskell solutions to adventofcode</span><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul></div><div id="content"><div id="module-header"><table class="info"><tr><th>License</th><td>MIT</td></tr><tr><th>Maintainer</th><td>@tylerjl</td></tr><tr><th>Safe Haskell</th><td>Safe-Inferred</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Y2023.D01</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Solutions to the 2023 day 01 set of problems for <a href="adventofcode.com">adventofcode.com</a>.</p></div></div><div id="synopsis"><details id="syn"><summary>Synopsis</summary><ul class="details-toggle" data-details-id="syn"><li class="src short"><a href="#v:partA">partA</a> :: <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-String.html#t:String" title="Data.String">String</a> -> <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a></li><li class="src short"><a href="#v:partB">partB</a> :: <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-String.html#t:String" title="Data.String">String</a> -> <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a></li><li class="src short"><a href="#v:base10Tuple">base10Tuple</a> :: (<a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a>, <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a>) -> <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a></li><li class="src short"><a href="#v:intoPair">intoPair</a> :: [<a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a>] -> <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> (<a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a>, <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a>)</li><li class="src short"><a href="#v:calibrateA">calibrateA</a> :: <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-String.html#t:String" title="Data.String">String</a> -> [[<a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a>]]</li><li class="src short"><a href="#v:calibrateB">calibrateB</a> :: <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-String.html#t:String" title="Data.String">String</a> -> [[<a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a>]]</li></ul></details></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a id="v:partA" class="def">partA</a> :: <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-String.html#t:String" title="Data.String">String</a> -> <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a> <a href="#v:partA" class="selflink">#</a></p><div class="doc"><p>Solve for part A</p></div></div><div class="top"><p class="src"><a id="v:partB" class="def">partB</a> :: <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-String.html#t:String" title="Data.String">String</a> -> <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a> <a href="#v:partB" class="selflink">#</a></p><div class="doc"><p>Solve for part B</p></div></div><div class="top"><p class="src"><a id="v:base10Tuple" class="def">base10Tuple</a> :: (<a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a>, <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a>) -> <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a> <a href="#v:base10Tuple" class="selflink">#</a></p><div class="doc"><p>Turn a tuple into a two-digit number</p></div></div><div class="top"><p class="src"><a id="v:intoPair" class="def">intoPair</a> :: [<a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a>] -> <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> (<a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a>, <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a>) <a href="#v:intoPair" class="selflink">#</a></p><div class="doc"><p>Given a list of ints, try and turn it into a tuple of first and | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /><title>Y2023.D01</title><link href="linuwial.css" rel="stylesheet" type="text/css" title="Linuwial" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script type="text/x-mathjax-config">MathJax.Hub.Config({ tex2jax: { processClass: "mathjax", ignoreClass: ".*" } });</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><span class="caption">adventofcode-0.1.0.0: Haskell solutions to adventofcode</span><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul></div><div id="content"><div id="module-header"><table class="info"><tr><th>License</th><td>MIT</td></tr><tr><th>Maintainer</th><td>@tylerjl</td></tr><tr><th>Safe Haskell</th><td>Safe-Inferred</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Y2023.D01</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Solutions to the 2023 day 01 set of problems for <a href="adventofcode.com">adventofcode.com</a>.</p></div></div><div id="synopsis"><details id="syn"><summary>Synopsis</summary><ul class="details-toggle" data-details-id="syn"><li class="src short"><a href="#v:part1A">part1A</a> :: <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-String.html#t:String" title="Data.String">String</a> -> <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a></li><li class="src short"><a href="#v:part1B">part1B</a> :: <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-String.html#t:String" title="Data.String">String</a> -> <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a></li><li class="src short"><a href="#v:base10Tuple">base10Tuple</a> :: (<a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a>, <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a>) -> <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a></li><li class="src short"><a href="#v:intoPair">intoPair</a> :: [<a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a>] -> <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> (<a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a>, <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a>)</li><li class="src short"><a href="#v:calibrateA">calibrateA</a> :: <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-String.html#t:String" title="Data.String">String</a> -> [[<a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a>]]</li><li class="src short"><a href="#v:calibrateB">calibrateB</a> :: <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-String.html#t:String" title="Data.String">String</a> -> [[<a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a>]]</li></ul></details></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a id="v:part1A" class="def">part1A</a> :: <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-String.html#t:String" title="Data.String">String</a> -> <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a> <a href="#v:part1A" class="selflink">#</a></p><div class="doc"><p>Solve for part A</p></div></div><div class="top"><p class="src"><a id="v:part1B" class="def">part1B</a> :: <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-String.html#t:String" title="Data.String">String</a> -> <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a> <a href="#v:part1B" class="selflink">#</a></p><div class="doc"><p>Solve for part B</p></div></div><div class="top"><p class="src"><a id="v:base10Tuple" class="def">base10Tuple</a> :: (<a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a>, <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a>) -> <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a> <a href="#v:base10Tuple" class="selflink">#</a></p><div class="doc"><p>Turn a tuple into a two-digit number</p></div></div><div class="top"><p class="src"><a id="v:intoPair" class="def">intoPair</a> :: [<a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a>] -> <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> (<a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a>, <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a>) <a href="#v:intoPair" class="selflink">#</a></p><div class="doc"><p>Given a list of ints, try and turn it into a tuple of first and | ||
last elements, with Nothing as the result if it can’t be done.</p></div></div><div class="top"><p class="src"><a id="v:calibrateA" class="def">calibrateA</a> :: <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-String.html#t:String" title="Data.String">String</a> -> [[<a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a>]] <a href="#v:calibrateA" class="selflink">#</a></p><div class="doc"><p>Transform an input string into a list of all the digits found in | ||
each line.</p></div></div><div class="top"><p class="src"><a id="v:calibrateB" class="def">calibrateB</a> :: <a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-String.html#t:String" title="Data.String">String</a> -> [[<a href="file:///nix/store/biyi9kkik889n04fc74kj5fxx5b9pdns-ghc-9.2.8-doc/share/doc/ghc/html/libraries/base-4.16.4.0/Data-Int.html#t:Int" title="Data.Int">Int</a>]] <a href="#v:calibrateB" class="selflink">#</a></p><div class="doc"><p>Transform an input string into a list of all the digits and | ||
spelled numbers found in each line.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.26.0</p></div></body></html> |
Oops, something went wrong.