claireneveu / nonemptystring   1.0.0

BSD 3-clause "New" or "Revised" License GitHub

Provides a NonEmptyString type for Scala.

Scala versions: 2.12 2.11 2.10

NonEmptyString

Provides a NonEmptyString type for Scala.

Getting NonEmptyString

If you're using SBT, add the following to your build file.

libraryDependencies += "com.claireneveu" %% "nonemptystring" % "1.0.0"

API Documentation

NonEmptyString provides the same API as String except certain functions like toUpperCase return a NonEmptyString.

A total head function and a tail function are also provided.