Skip to content

sjrd/scala-unboxed-option

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scala-unboxed-option

Build Status Scala.js

Scala's Option[+A] type is really useful to accurately type optional values. Its higher-order methods like map and getOrElse, as well as its pattern matching capabilities, make it a pleasure to deal with. However, as is well known, it incurs the cost of boxing every present value in an instance of Some. In some cases, this can cause performance issues.

scala-unboxed-option's UOption[+A], which stands for Unboxed Option, solves this problem. It retains the full API of Option[+A], including the fact that it is type parametric.

License

scala-unboxed-option is released under the BSD 3-clause license. See LICENSE.txt for details.

About

A type-parametric unboxed Option type for Scala

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages