by shigemk2

当面は技術的なことしか書かない

2015-10-14から1日間の記事一覧

Gitのstashの中身を見たい

Git

stackoverflow.com わりとこれだけ。stashの指定もできちゃう。 $ git stash show -p $ git stash show -p stash@\{0\} とはいえ、stashを多用するのはよくないので、たぶんほどほどに。。。

implicitの使い方など

暗黙の引数として扱えるアレ。 scala> def f(n:Int)(implicit m:Int) = n + m f: (n: Int)(implicit m: Int)Int scala> implicit val iv: Int = 123 iv: Int = 123 scala> f(5) res0: Int = 128 scala> f(1)(10) res1: Int = 11 scala> implicit val v2: Int…