Skip to content

Instantly share code, notes, and snippets.

View mletterle's full-sized avatar
💭
🍺 Always. Be. Coding.

Michael Letterle mletterle

💭
🍺 Always. Be. Coding.
View GitHub Profile
@bfriesen
bfriesen / WhatTheFunc
Created December 3, 2012 07:13
My solution to David Poeschl's (‏@dpoeschl) twitter code golf challenge
// Make this C# code compile with minimal additional code (no commenting, etc.): Foo(0)(1)("two")("three")(4)(5)("six")("seven")(8)(9)("ten!");
// https://twitter.com/dpoeschl/status/275464052216573952
// How much more code to enforce the argument type pattern (i.e. int, int, string string, int, int, string, string...)?
// https://twitter.com/dpoeschl/status/275477464183103488
// https://twitter.com/dpoeschl/status/275478110290444288
// https://twitter.com/brianfriesen/status/275479513490669568
delegate WhatTheFunc<T2,T3,T4,T1> WhatTheFunc<T1,T2,T3,T4>(T1 _);
void CreateFoo()