Skip to content

Instantly share code, notes, and snippets.

@eddieantonio
Created November 25, 2013 16:59
Show Gist options
  • Save eddieantonio/7644598 to your computer and use it in GitHub Desktop.
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).
#!/usr/bin/env runhaskell
import Data.List (intercalate)
joinLines input = unlines $ map joinLine (lines input)
where
joinLine line = intercalate "" (words line)
main = interact joinLines
#!/usr/bin/perl
s/ //g xor print while <>;
#!/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