Created
November 25, 2013 16:59
-
-
Save eddieantonio/7644598 to your computer and use it in GitHub Desktop.
Silly scripting language golf. Must read in a line of input, take out all of the spaces, and print it _immediately_ (so it can be sort of interactive).
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
#!/usr/bin/env runhaskell | |
import Data.List (intercalate) | |
joinLines input = unlines $ map joinLine (lines input) | |
where | |
joinLine line = intercalate "" (words line) | |
main = interact joinLines |
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
#!/usr/bin/perl | |
s/ //g xor print while <>; |
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
#!/usr/bin/env python | |
try: | |
while True: | |
print(''.join(raw_input().split())) | |
except EOFError: | |
pass | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment