Created
July 17, 2015 08:16
-
-
Save velengel/645c17999c1b96c817ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
import Cards | |
import Random.Shuffle | |
import Data.List | |
main :: IO () | |
main = do | |
shuffled <- shuffleM allCards | |
print . sort . take 5 shuffled |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://tune.hateblo.jp/entry/2015/05/12/023112