A script to sum all the numbers on stdin (one per line): #!/usr/bin/env ruby puts STDIN.each_line.map(&:to_i).reduce(:+)
-
-
@gphat@shu@nelhage@recursecenter@antifuchs getting a "command not found" error for that one - 5 more replies
New conversation
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
