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

Perl6 thread

Name: Anonymous 2011-01-09 22:35

There are too many ways to do it.

The completely backwards way:

> sub foo(&f) { f() }
{ "hi".say }.&foo();
hi


On the other hand, closures are much nicer now (JavaScript needs this):
> say (1,2,3,4,5).reduce: { $^a + $^b };
15

Note about .reduce: it only supports binary functions.

A note on operators:
Hyperops, eg: (1,2,3,4) «+» (5,6,7,8)
These are permitted to auto-parallelize (implementation dependent.)
Lazy meta-ops, eg: 1,2,3,4 Z+ 5,6,7,8
These support lazy evaluation. The result is generated as needed.
Reduction meta-ops, eg: [+] 1,2,3,4,5
Triangular reduction: [code][\+] 1,2,3,4,5 # result is (1,3,6,10,15)[code]
These are basically .reduce(*[b][i]op[/i][/b]*) with the binary operator provided.

Name: Anonymous 2013-06-04 17:46

(display (string-map (lambda (c) (if (equal? c #\a) #\z c)) (display "abcdef")))

Name: Anonymous 2013-06-04 17:50

>>81
Actually.

(define A "abcdef")
(define B (display (string-map (lambda (c) (if (equal? c #\a) #\z c)) (display A))))

Name: Anonymous 2013-06-04 18:12

>>78
Why are you on /prog/ if you're not even a Jew?

Name: Anonymous 2013-06-04 18:41

>>83
Fuck you, do u even know how to program, useless faggot?

Name: Anonymous 2013-06-04 18:42

>>84
Did you even get your dick cut, goy?

Of course, I can shoot streams of parentheses. ((()))

Name: Cudder !MhMRSATORI!fR8duoqGZdD/iE5 2013-06-05 5:34

>>85
I suddenly felt the air shake. The knife began to fall upon me... At this moment, the ceiling gave out a loud cracking noise, followed by debris falling down. A loud booming hiss which seemed to sound like "Have you read your SICP today?" filled the air. I lifted my head and discovered... Standing in front, catching the blade with his crotch-snake, was the robed figure of The Sussman. Standing beside him, with flaming red hair, was Shana.

"You and your forced indentation." The Sussman said in his usual expressionless tone, "You think you can defy my power?"

"You want to get in my way?" Asakura sounded calm. "Once I open this Mystes, the Lord Anal Touring is bound to have some sort of reaction. Only then can we obtain more cudders."

"You are supposed to be my backup." The Sussman said in a mantra-like tone, "This sort of insubordination is forbidden; you must obey my commands."

"What if I refuse?"

"Then I will send you to the land of Java."

"Would you like to try? I have the advantage here, since this classroom belongs to MIT."

The Sussman removed his wizard hat and set it on the floor before removing a wand from a pocket on his robe. He pointed it at the knife in her hand and murmured. Shortly after, it started glowing brightly. Then, like the sugar cube being placed into a cup of tea, it slowly crystallized and dissolved and fell towards the floor like powder.

Shana walked over to me and told me not to move.

"We're in a fuzetsu," she explained. "You can move because you have the power of the Reiji Maigo. But hold still, I'll protect you while Lord Sussman takes care of her."

Asakura released the knife and jumped five meters away. Opening up the distance in an instant, Asakura landed elegantly and continued smiling as usual. The Sussman raised his wand and pointed it directly at the ceiling, not taking his eyes off Asakura. The wand released a wave of glowing white parentheses and the space around The Sussman began to distort.

"It's time for some ENTERPRISE QUALITY!" Asakura cheerfully cried as she conjured the spirits of the JVM, producing a flood of boiling-hot coffee that rushed its way towards The Sussman, who stood motionless, parentheses continuing to issue from his wand like electromagnetic radiation.

"You think your turkey solutions can stop me?" The Sussman said calmly before lowering his wand, forming the pool of parentheses now gathered around him into a sharp pointed cone aimed at Asakura. Suddenly he shouted "LIIIIIIIIIIIIIIIISP!" and the parentheses shot forward into the waves of coffee, pushing the boiling hot liquid back towards where it came.

"Nooooooo....." her cries became weaker as she became engulfed in the dark brown liquid. Everything turned black and I felt as though I had fainted.

Name: Anonymous 2013-06-05 5:51

OH GOD SHANA ISHOT

Name: Anonymous 2013-06-05 7:05

Back to /sha/, please.

Name: Anonymous 2013-06-05 7:31

>>85
Ur doin it wrong.
(((Racket)))

Name: Anonymous 2013-06-05 7:32

'LETS MAKE THIS#ENTERPRISE QUALITY

Name: Anonymous 2013-06-05 7:33

VIVA MEOWXICOCABRONES

Name: Anonymous 2013-06-05 7:35

#HAVE YOU#SEEN THIS BOY?

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