shawjef3 / scala-defaults   0.1

GitHub

Provides a default value to import for nicer value initilization

Scala versions: 2.12 2.11 2.10

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"