shawjef3 / scala-defaults

Provides a default value to import for nicer value initilization

GitHub

Provides a default method like C#'s default keyword

Examples

import me.jeffshaw.default.Default

// 0
var x = Default[Int]

// None
var maybeY = Default[Option[Int]]

Dependency

"me.jeffshaw.default" %% "scala-defaults" % "0.1"