Skip to content

Instantly share code, notes, and snippets.

@rrouse
Last active December 25, 2015 18:19
Show Gist options
  • Save rrouse/7019243 to your computer and use it in GitHub Desktop.
Save rrouse/7019243 to your computer and use it in GitHub Desktop.
Sort in falcon
s = InputStream(args[0])
o = OutputStream(args[1])
sorted = Set().comp( s.grabLine )
s.close()
for item in sorted: o.writeText(item + "\n")
o.close()
# falcon sort.fal lines.txt sorted.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment