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 2009-08-27 22:08

>>program,
>>real language
>>Perl.

Anon you are so funny tonight

Name: Anonymous 2009-08-27 22:09

>>40
use a real language
perl
ಠ_ಠ

Name: Anonymous 2009-08-27 22:15

>>40
I'll post whatever the fuck I want, you whiny faggot. You fear the monads because you lack the gonads. Bitch.

Name: Anonymous 2009-08-27 23:11

>>41-42
Perl is immensely more useful than HASKAL, you festering cumshots. Even accounting for how amazingly useless it is compared to C.

Name: Anonymous 2009-08-27 23:12

>>40
It's not used only for fibs. It's also used for scalable web applications.

Name: Anonymous 2009-08-27 23:17

>>45
You're thinking of Erlang

Name: Anonymous 2009-08-27 23:18

>>46
You're thinking of Java servlets

Name: Anonymous 2009-08-27 23:20

>>47
You're thinking of ASP.NET

Name: Anonymous 2009-08-27 23:22

>>48
You're thinking of My United States of whatever

Name: Anonymous 2009-08-27 23:50

>>49
You're thinking of the game

Name: Anonymous 2009-08-28 0:33

>>50
back to /b/

Name: Anonymous 2009-08-28 0:39

>>51
You just stopped thinking.

Name: Anonymous 2009-08-28 0:40

You are now thinking manually

Name: Anonymous 2009-08-28 1:30

I fucked you're touhou

Name: Anonymous 2009-08-28 3:58

>>53
proove it numbnuts

Name: Anonymous 2009-08-28 4:31

>>55
Cogito ergo your gay

Name: Anonymous 2009-08-28 4:36

>>56
Back to middle school, please

Name: Anonymous 2009-08-28 4:44

>>57
i lold at >>56

Name: Anonymous 2009-08-28 5:08

>>58
see
>>57

Name: Anonymous 2009-08-30 1:51

>>41
>>42
You script kiddies, I bet you even think "Perl is dead"

Name: SAGE SAGE SAGE SAGE SAGE 2009-08-31 2:10

Bumping because this thread contains actual programming

Name: Anonymous 2009-08-31 9:33

Saging because I'd go work if I wanted actual programming.

Name: Anonymous 2011-02-04 18:46

Name: 2012-01-25 7:21

Name: Anonymous 2012-01-25 7:45

>>44
Haskell is the best choice for functional programming.
Perl is the best choice for nothing because ruby is better in every way at the exact same thing.

Name: Anonymous 2012-01-25 10:55

>>62

>implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying >implying

Name: 67 2012-01-25 10:56

i normally always sage, but i must bump programming related threads in the presence of such spam.

Name: Anonymous 2012-01-25 11:01

>>1
Hi I don't even know what this is trying to do

Name: Anonymous 2012-01-25 14:04

>>69

you are stupid

Name: Anonymous 2012-01-25 16:57

>>69
Try reading the thread with your eyes open.

Name: 2012-01-25 22:54

Name: Anonymous 2012-01-26 13:01

>>70
>>71
nope still not got it . Something to do with hashes. Why's it called cycle?

Name: Anonymous 2012-01-26 13:06

Someone's a mental midget.

Name: Anonymous 2012-01-26 14:30

>>1
Or you could use Array.cycle ?

Name: Anonymous 2012-01-26 14:32

>>75
I MENA Array.rotate / rotate!

Name: Anonymous 2012-01-26 14:32

Also cycle my dubs!

Name: Anonymous 2012-01-26 14:33

Check 'em

Name: Anonymous 2012-01-26 14:35

rotate my cycle until closure

Name: Anonymous 2012-01-26 18:22


#!/usr/bin/env ruby1.9
N=ARGV[0].to_i
B=ARGV[1].to_i
Array.new(N<B ? N : B) {|i|N.to_s(i+2)}.each_with_index{|e,i|e.match(/(\d)\1$/)&&printf("[%02d] %s\n",i+2,e) }


Ah the pleasure of being cummed inside

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