Update sol.hs
This commit is contained in:
parent
5a68f700ec
commit
868561eda8
@ -62,9 +62,6 @@ rotl = reverse . transpose
|
||||
rotr :: [[Int]] -> [[Int]]
|
||||
rotr = transpose . reverse
|
||||
|
||||
mmult :: [[Int]] -> [[Int]] -> [[Int]]
|
||||
mmult a b = [[sum $ zipWith (*) ar bc | bc <- (transpose b)] | ar <- a]
|
||||
|
||||
main = do
|
||||
ls <- fmap Text.lines (Text.readFile "input")
|
||||
let digits = map (getDigitsFromString . Text.unpack) ls
|
||||
|
Loading…
Reference in New Issue
Block a user