by shigemk2

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

MacのChromeでウィンドウを切り替える

blog.mochrom.jp

Yosemiteだと、ウィンドウの切り替えはCommand + f1

どうも、Chrome特有の機能ではなく、Mac全体の機能っぽい。 support.google.com

support.apple.com

でも公式とかサポートとか、どこらへんにそれが書いてあるのかよくわからない。

一応機能としては存在するんだけども。

f:id:shigemk2:20150927184637p:plain

Scalaのタプル

sites.google.com

ジェネリッククラスの一種とのこと。

def tupleator(x1: Any, x2: Any, x3: Any) = (x1, x2, x3)

val t = tupleator("Hello", 1, 2.3)
println( "Print the whole tuple: " + t )
println( "Print the first item: "  + t._1 )
println( "Print the second item: " + t._2 )
println( "Print the third item: "  + t._3 )

val (t1, t2, t3) = tupleator("World", '!', 0x22)
println( t1 + " " + " " + t3 )

それで、継承関係を辿って行くと、

Tuple(2とか3) > Product(2とか3) > Product > Equals > Any という流れになっている。

www.scala-lang.org