Package

sclib

util

Permalink

package util

utilities

check the member documentation for examples

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. util
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait union extends AnyRef

    Permalink

    simple union type

    Example:
    1. scala> import sclib.util.union._
      scala> def f[A: (Int Or String)#Check](a: A): Int = a match {
           |   case i: Int => i
           |   case s: String => s.length
           | }
      scala> f(5)
      res0: Int = 5
      scala> f("hey")
      res1: Int = 3
      // this throws a compiler error:
      scala> f(5L)

Value Members

  1. object all extends union

    Permalink

    use import sclib.util.all._ to import all

  2. object union extends union

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped