Just figure out what the following program writes to the console...
using System;
using System.Collections.Generic;
using _ = System.Text.StringBuilder;
using __ = System.Console;
using ___ = System.Collections.Generic.IEnumerable<int?>;
class wtf
{
static void Main()
{
_ _ = new _().Append(_2());
int i= 0; foreach(int? x in _1())
{
_[(int)((x ?? i) < 0 ? i ^ 2 % 10 : x)] = _2()[i++];
}
__.WriteLine(_.ToString());
}
static char[] _2()
{
return
(
"H" + "Y"
+
"E" + "N"
+
"A" + " "
+
"P" + "A"
+
"W" + " "
+
"P" + "R"
+
"E"+"Y"
).ToCharArray();
}
static ___ _1()
{
int?[] _ = {
0, 10, 11, 6, 1, 5, 3,
/*~~~~~~~~~~~~~~~~~~~*/
12, 8, 9, 2, 13, 7, 4
};
foreach (int? x in _)
yield
return
null
??
x;
}
}
Who is gonna port this to VB?
Comments
VB syntax will simplify it, I think ;)
This is very cool :)
MyLastComment.Replace("uour", "your")
Happy new year to you too :)
I'll look at a VB convert later...if i'm feeling masochistic enough.
0..H
1..Y
2..E
3..N
4..A
5..<space>
6..P
7..A
8..W
9..<space>
10.P
11.R
12.E
13.Y
0:0
.0..1..2..3..4..5..6..7..8..9.10.11.12.13
.H.......................................
1:10
.0..1..2..3..4..5..6..7..8..9.10.11.12.13
.H.............................Y.........
2:11
.0..1..2..3..4..5..6..7..8..9.10.11.12.13
.H.............................Y..E......
3:6
.0..1..2..3..4..5..6..7..8..9.10.11.12.13
.H.................N...........Y..E......
4:1
.0..1..2..3..4..5..6..7..8..9.10.11.12.13
.H..A..............N...........Y..E......
5:5
.0..1..2..3..4..5..6..7..8..9.10.11.12.13
.H..A..........._..N...........Y..E......
6:3
.0..1..2..3..4..5..6..7..8..9.10.11.12.13
.H..A.....P....._..N...........Y..E......
7:12
.0..1..2..3..4..5..6..7..8..9.10.11.12.13
.H..A.....P....._..N...........Y..E..A...
8:8
.0..1..2..3..4..5..6..7..8..9.10.11.12.13
.H..A.....P....._..N.....W.....Y..E..A...
9:9
.0..1..2..3..4..5..6..7..8..9.10.11.12.13
.H..A.....P....._..N.....W.._..Y..E..A...
10:2
.0..1..2..3..4..5..6..7..8..9.10.11.12.13
.H..A..P..P....._..N.....W.._..Y..E..A...
11:13
.0..1..2..3..4..5..6..7..8..9.10.11.12.13
.H..A..P..P....._..N.....W.._..Y..E..A..R
12:7
.0..1..2..3..4..5..6..7..8..9.10.11.12.13
.H..A..P..P....._..N..E..W.._..Y..E..A..R
13:4
.0..1..2..3..4..5..6..7..8..9.10.11.12.13
.H..A..P..P..Y.._..N..E..W.._..Y..E..A..R
Cool. I'm eagerly awaiting 2007 then. :)