changeset 5845:b7c3d318e0e6

<Jafet> ` echo $\'#!python\\ns=set()\\ntry:\\n while True:\\n l=raw_input()\\n if l not in s:\\n s.add(l)\\n print(l)\\nexcept IOError:\\n pass\' > bin/uniqs && chmod +x bin/uniqs
author HackBot
date Sat, 18 Jul 2015 10:25:33 +0000
parents 3037859ed9fe
children aae488a4cfcf
files bin/uniqs
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/uniqs	Sat Jul 18 10:25:33 2015 +0000
@@ -0,0 +1,10 @@
+#!python
+s=set()
+try:
+ while True:
+  l=raw_input()
+  if l not in s:
+   s.add(l)
+   print(l)
+except IOError:
+ pass