haskell list comprehension and local scoping

ghc -e 'let hw = let zhw = zip "hello" "world"; h = [fst x | x <- zhw]; w = [snd y | y <- zhw] in h ++ " " ++ w' -e 'hw'

Advertisements