News for hackers. Stuff that matters.
Re:Half My Life with Perl – By Randal Schwartz by stouset on Thursday December 19, 2024 @12:35PM (#42463789)
On the other hand Ruby has the Schwartzian transform baked in :)

    foo.sort    { |a,b| a.expensive <=> b.expensive } # basic
    foo.sort_by { |a,b| a.expensive <=> b.expensive } # Schwartz-enabled

There are no comments on this comment yet.