Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@steezeburger
Created September 1, 2016 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steezeburger/76dbe7246e07eb2989883be93add07e7 to your computer and use it in GitHub Desktop.
Save steezeburger/76dbe7246e07eb2989883be93add07e7 to your computer and use it in GitHub Desktop.
import System.Environment
import Data.List ((\\))
containsAll :: String -> String
containsAll = (['a' .. 'z'] \\)
main = do
(toTest:args) <- getArgs
print $ containsAll toTest
@steezeburger
Copy link
Author

run ghc --make containsAll.hs to compile
and ./containsAll abcdefgh to run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment