Skip to content

Commit

Permalink
refactor(2023.04-haskell): prefer unlines
Browse files Browse the repository at this point in the history
  • Loading branch information
yurrriq committed Dec 8, 2023
1 parent 1fdbbaa commit b7d255f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2023.4.2.1
2023.4.2.2
5 changes: 2 additions & 3 deletions src/AdventOfCode/Year2023/Day04.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import AdventOfCode.TH (defaultMain, inputFilePath)
import Control.Arrow ((>>>))
import Data.IntMap.Strict ((!))
import qualified Data.IntMap.Strict as IntMap
import Data.List (intercalate, sortOn)
import Data.List (sortOn)
import Data.List.Extra (sumOn')
import Data.Set (Set)
import qualified Data.Set as Set
Expand Down Expand Up @@ -65,8 +65,7 @@ getExample = parseString (some scratchcard) example

example :: String
example =
intercalate
"\n"
unlines
[ "Card 1: 41 48 83 86 17 | 83 86 6 31 17 9 48 53",
"Card 2: 13 32 20 16 61 | 61 30 68 82 17 32 24 19",
"Card 3: 1 21 53 59 44 | 69 82 63 72 16 21 14 1",
Expand Down

0 comments on commit b7d255f

Please sign in to comment.