Blog Posts

Recent posts

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

FP - expression vs statement

less than 1 minute read

Expression: by combining value and function, it will generate the value with some possible side-effect Statement: standalone unit of execution without return...