Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Ruby is beautiful

Name: Anonymous 2009-08-26 15:25

class Cycle
    def cycle(*args)
      args[((@_cycles ||= Hash.new(-1))[args.hash] += 1) % args.size]
    end
end

More beautiful code plees?

Name: Anonymous 2012-01-28 20:06

>>107
There have to be somethings that you don't know. Whether or not that comes up in conversation wont change that. If you don't talk about them, how can you expect to learn about them?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List