Our great sponsors
-
adventofcode
Advent of Code solutions of 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 and 2023 in Scala (by sim642)
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
ghc
Mirror of the Glasgow Haskell Compiler. Please submit issues and patches to GHC's Gitlab instance (https://gitlab.haskell.org/ghc/ghc). First time contributors are encouraged to get started with the newcomers info (https://gitlab.haskell.org/ghc/ghc/wikis/contributing).
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Did you see the link in the post? http://adventofcode.com
My solution.
Here's my solution
My solution!
My day 4 on GitHub: - Solution of first part: GiantSquid_1.hs - Solution of second part: GiantSquid_2.hs - Two small helper modules GiantSquid.Board and .Parse
GHCi, version 8.10.7: https://www.haskell.org/ghc/ :? for help Prelude> :load day4.hs [1 of 1] Compiling Main ( day4.hs, interpreted ) Ok, one module loaded. *Main> :t markValue markValue :: Int -> BingoBoard -> BingoBoard *Main> :t sumUnmarked sumUnmarked :: BingoBoard -> Int *Main>