Created
February 10, 2015 09:59
-
-
Save kb10uy/cbee4ff6605f57f658d3 to your computer and use it in GitHub Desktop.
ごちうさ6羽を見て思いついたこと
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
public class Program { | |
public static void Main(string[] args) { | |
Func<string> お話 = () => "ごちうさ6羽"; | |
お話().をするお話()(); | |
お話().をするお話().をするお話().をするお話().をするお話()()()()(); | |
お話() | |
.をするお話() | |
.をするお話() | |
.をするお話() | |
.をするお話() | |
.をするお話() | |
.をするお話() | |
.をするお話() | |
.をするお話() | |
.をするお話() | |
.をするお話() | |
.をするお話() | |
.をするお話() | |
.をするお話() | |
.をするお話() | |
.をするお話() | |
.をするお話() | |
()()()() | |
()()()() | |
()()()() | |
()()()(); | |
} | |
} | |
public static class GochiusaExtension { | |
public static Action をするお話(this string obj) { | |
return () => { Console.WriteLine(obj); }; | |
} | |
public static Func<T> をするお話<T>(this T obj) { | |
return () => obj; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment