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
| import std.stdio; | |
| void func(int x, int y, int z){ | |
| writeln("function"); | |
| writeln("x, y, z : ", x, ",", y, ",", z); | |
| } | |
| void main(){ | |
| auto fxy = ((int x) => (int y) => func(1, x, y)); | |
| auto fx = fxy(2); |
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
| 春 | |
| 囁く春の息吹に耳を澄ませば、こだまする泡が聞こえる。 | |
| その穴には新しく芽吹いた生き物の生と、老いた生き物の死がその小さな殻に込められている。 | |
| 泡が弾ける時、死に生まれる。悠久の時の中で、幾重にもこの積み重なりが積み上がっていく。ああ、諸行無常。 | |
| 不変的なものなど無いが、不変的なものに美を見出す。これは憧れなのだろうか。 | |
| それとも、嫉妬なのか。いずれにしても、春の朝の燦々たる清々しい陽日を前にしては塵に等しい。 | |
| 無為自然の美。これに尽きるのだろう。 | |
| さあ、歩もうか泡が弾けるその時まで。 |
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
| Building manakasi ~master configuration "library", build type debug. | |
| Running dmd... | |
| Building example ~master configuration "application", build type debug. | |
| Compiling using dmd... | |
| Linking... | |
| Undefined symbols for architecture x86_64: | |
| "_mecab_lattice_add_request_type", referenced from: | |
| _D8manakasi5mecab5Mecab22__T12parseToBestsTAyaZ12parseToBestsMFxAyamZ5Bests6__ctorMFNbNcC8manakasi5mecab5MecabAyamZS8manakasi5mecab5Mecab22__T12parseToBestsTAyaZ12parseToBestsMFxAyamZ5Bests in example.o | |
| "_mecab_lattice_destroy", referenced from: | |
| _D8manakasi5mecab5Mecab22__T12parseToBestsTAyaZ12parseToBestsMFxAyamZ5Bests6__dtorMFNbNiZv in example.o |
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
| import std.stdio, | |
| std.array, | |
| std.range; | |
| auto x = (int[] arr) pure nothrow @nogc @safe { return ++arr[0] * 2; }; | |
| int[] fx(int[] xss){ return xss.length ? x(xss) ~ fx(xss[1..$]) : xss; } | |
| void main(){ | |
| writeln(fx(100.iota.array)); |
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
| 夢 | |
| 追えば追うほどその遠さを凍てつくような現実として、見せつけて。立ち止まればその分だけ遠のいてゆく。 | |
| 果たして、夢を追いかけた結果として得られた夢は本当に自分が追い求めていた夢なのだろうか。 | |
| 途中で入れ替わってはいないだろうか、見失っていないだろうか、それはわからない。 | |
| 逃げることもできず、ただ無情にも時間だけが過ぎ行く。まるで、ブレーキのない自転車で急坂を下るように。 | |
| 人はなぜ前を向いて夢を追いかけ歩いて行くのか、はたしてその目的とはなんなのであろうか。 | |
| おそらく、これに対する模範解答的な答えとしては、生きていくため、人間であるがゆえ、 | |
| 家族のためなどというものが挙げられると思うが、ここで一つ疑問を提起しよう。 | |
| それは、なぜ生きるのか、である。どうして生存本能というものがあるのだろうか、そして欲求が生まれるのだろうか。 |
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
| import std.conv, | |
| std.stdio, | |
| std.range, | |
| std.algorithm; | |
| import core.thread; | |
| string[] fizzbuzz(int max, int i = 0, string[] base = null){ | |
| return max == 0 ? base : fizzbuzz(max - 1, ++i, base ~ { | |
| return !(i % 15) ? "FizzBuzz" : | |
| !(i % 3) ? "Fizz" : |
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
| import std.stdio, | |
| std.conv, | |
| std.algorithm; | |
| string[] fizzbuzz(int max, int i = 0, string[] base = null){ | |
| return max == 0 ? base : fizzbuzz(max - 1, ++i, base ~ { | |
| return !(i % 15) ? "FizzBuzz" : | |
| !(i % 3) ? "Fizz" : | |
| !(i % 5) ? "Buzz" : i.to!string; | |
| }()); |
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
| import std.algorithm, | |
| std.stdio, | |
| std.conv; | |
| void main(){ | |
| int fact(int n){ | |
| return n == 1 ? 1 : n * fact(n - 1); | |
| } | |
| auto mapper = Maper!(int delegate(int), int)(&fact, [1, 2, 3, 4, 5]); |
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
| /* | |
| TwitNotify | |
| The Twitter Notification tool. | |
| Copyright (C) 2014-2015 alphaKAI http://alpha-kai-net.info | |
| The MIT License | |
| using : My Twitter API Wrapper Twitter4D(twitter4d.d) | |
| Twitter4D's Repository : https://github.com/alphaKAI/twitter4d |
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
| module app; | |
| import std.algorithm, | |
| std.string, | |
| std.random, | |
| std.stdio, | |
| std.range, | |
| std.file; | |
| import manakasi.mecab; | |
| class Markov{ |