Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {-# LANGUAGE UnicodeSyntax #-}
- import Control.Applicative ((<$>))
- import Inversions
- inputFile ∷ FilePath
- inputFile = "IntegerArray.txt"
- main ∷ IO ()
- main = print =<< inversions <$> map (read ∷ String → Int) <$> lines <$> readFile inputFile
Add Comment
Please, Sign In to add comment