Blog Posts

Recent posts

Scala - ~> [Tilde arrow] explanation

less than 1 minute read

"~>" is a place holder for type. Main reason to use "~>" is to make readable on type A goes to type B. This is possible because Scala allow to express ...

Scala - By Name Parameters

less than 1 minute read

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...