Scala - By Name Parameters
Syntax: => A 1 2 3 4 5 def ifElse[A](test: Boolean, whenTrue: => A, whenFalse: => A): A = test match { case true => whenTrue case false =&g...
Syntax: => A 1 2 3 4 5 def ifElse[A](test: Boolean, whenTrue: => A, whenFalse: => A): A = test match { case true => whenTrue case false =&g...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 def getProduct(id: String): Try[Product] def getPrice(product: Product): Try[Price] def calculateProductPrice(product: Pr...
Expression: by combining value and function, it will generate the value with some possible side-effect Statement: standalone unit of execution without return...
The following command will import a table(column family) to the destination Cassandra node. 1 $ sstableloader -d [destination IP address] -p [port number] [t...
Tmux switcher with fzf