From 555da2ae6f658672cfc0d37e437ec356c0c0fa63 Mon Sep 17 00:00:00 2001 From: Akshay Date: Sat, 5 Dec 2020 13:19:25 +0530 Subject: factor common functions into Utils --- execs/Day02.hs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'execs/Day02.hs') diff --git a/execs/Day02.hs b/execs/Day02.hs index a2815b7..c462ec9 100644 --- a/execs/Day02.hs +++ b/execs/Day02.hs @@ -2,12 +2,7 @@ module Main where import Text.ParserCombinators.Parsec import Text.Parsec.Char - -countElem c ls = sum $ map (fromEnum . (== c)) ls - -xor a b = (not a && b) || (a && not b) - -right (Right a) = a +import Utils data PassProp = PassProp { range :: (Int, Int) -- cgit v1.2.3