News for hackers. Stuff that matters.
Re:Ask HN: New OSS Projects: Go or Java? by atmosx on Tuesday September 20, 2016 @03:58AM (#12537905)
This:

    $,="\t"; print readlines.map{|r| s=r.split; [s[0].to_i,r]}\
    .max{|a,b| a[0]<=>b[0]}
It's a ruby one-liner that prints the largest first field and the lines that contains that field.

There are no comments on this comment yet.