![めっちゃかわいい……「ping」ならぬ「pingu」コマンドが開発され、Twitterで話題に/世界中から愛されるいたずら大好きな子ペンギンがコマンドラインに降臨【やじうまの杜】](https://cdn-ak-scissors.b.st-hatena.com/image/square/d0cc465e7a56b8da72e9837b323ea433cc841a88/height=288;version=1;width=512/https%3A%2F%2Fforest.watch.impress.co.jp%2Fimg%2Fwf%2Flist%2F1416%2F765%2Fimage1.jpg)
先日面白い記事を読んだ。The Y combinator in Go with generics である。 一番最初目に入ってきたのは難解なジェネリクスのコードである。 type Func[T, U any] func(T) U type TagFunc[T, U any] func(Func[T, U]) Func[T, U] type CombinatorFunc[T, U any] func(CombinatorFunc[T, U]) Func[T, U] func Y[T, U any](f TagFunc[T, U]) Func[T, U] { return func(self CombinatorFunc[T, U]) Func[T, U] { return f(func(n T) U { return self(self)(n) }) }(func(self Combinat
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く