Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
126 lines (122 sloc) 4.68 KB
package object scalqa {
type ~[+A] = Stream.Interface[A]
val ~~ = Stream.Interface.This
type \/ = Util.Void.Request.type; def \/ = Util.Void.Request
type Opt[+A] = Opt._Class[A]
type Idx[+A] = Idx._Trait[A]
type Stream[A] = Stream._Class[A]
type Tag[-A] = Util.Specialized.Tag[A]
type Booleans = Idx.Immutable.Booleans; val Booleans = Idx.Immutable.Booleans
type Bytes = Idx.Immutable.Bytes; val Bytes = Idx.Immutable.Bytes
type Chars = Idx.Immutable.Chars; val Chars = Idx.Immutable.Chars
type Shorts = Idx.Immutable.Shorts; val Shorts = Idx.Immutable.Shorts
type Ints = Idx.Immutable.Ints; val Ints = Idx.Immutable.Ints
type Longs = Idx.Immutable.Longs; val Longs = Idx.Immutable.Longs
type Floats = Idx.Immutable.Floats; val Floats = Idx.Immutable.Floats
type Doubles = Idx.Immutable.Doubles; val Doubles = Idx.Immutable.Doubles
type Refs[A] = Idx.Immutable.Refs[A]; val Refs = Idx.Immutable.Refs
import scalqa.Util.Able.{ Stream => All }
@inline implicit def zzStream_Array[@specialized(DATA) A](v: Array[A]): ~[A] with All[A] = Stream.Z.adapt.Array[A](v)
@inline implicit def zzStream_Java_Iterable[@specialized(DATA) A: Tag](v: java.lang.Iterable[A]): ~[A] with All[A] = Stream.Z.adapt.JavaIterable[A](v)
@inline implicit def zzStream_Java_Iterator[@specialized(DATA) A: Tag](v: java.util.Iterator[A]): ~[A] with All[A] = Stream.Z.adapt.JavaIterator[A](v)
@inline implicit def zzStream_Scala_IterableOnce[@specialized(DATA) A: Tag](v: collection.GenTraversableOnce[A]): ~[A] with All[A] = Stream.Z.adapt.IterableOnce[A](v)
private[scalqa] val DATA = Util.Specialized.Data
private[scalqa] type ClassTag[A] = scala.reflect.ClassTag[A]
}
/*___________________________________________________________________________
__________ ____ __ ______ ____
/ __/ ___// _ | / / / __ / / _ | Scala Quick API
__\ \/ /___/ __ |/ /__/ /_/ /_/ __ | (c) 2018, Datamata Corporation
/_____/\____/_/ |_/____/\______/_/ |_| github.com/scalqa
___________________________________________________________________________*/
/**
* @type \/ -> Universal void request
*
* This is a shortcut to assign empty implementations for many types
*
* {{{
* var s: ~[Int] = \/ // Assigning empty Stream of Ints
* var o: Opt[String] = \/ // Assigning empty optional value of String
* var i: Idx[Long] = \/ // Assigning empty indexed collection of Long
* var d: Doubles = \/ // Assigning empty immutable collection of Double
* }}}
*
* Also see [[Util.Void]]
*
* @type ~ -> Stream interface type alias
*
* Globally available shortcut to type [[Stream.Interface]]
*
* Note. ''~'' is type alias, and ''~~'' is object alias
*
* @val ~~ -> Stream interface object alias
*
* Globally available shortcut to object [[Stream.Interface$]]
*
* Note. ''~'' is type alias, and ''~~'' is object alias
*
* This is the easiest way to create Streams
* {{{
* def s: ~[Int] = ~~(1,2,3)
*
* def v2 = ~~[Int] // Void Stream[Int]
*
* def v1: ~[Int] = \/ // Void Stream[Int]
* }}}
*
* @type Tag -> Alias
*
* Application code should never worry about providing Tag, this is done implicitly
*
* @type Booleans -> Alias
*
* Globally available alias to type and object [[Idx.Immutable.Booleans]]
*
* @type Bytes -> Alias
*
* Globally available alias to type and object [[Idx.Immutable.Bytes]]
*
* @type Chars -> Alias
*
* Globally available alias to type and object [[Idx.Immutable.Chars]]
*
* @type Shorts -> Alias
*
* Globally available alias to type and object [[Idx.Immutable.Shorts]]
*
* @type Ints -> Alias
*
* Globally available alias to type and object [[Idx.Immutable.Ints]]
*
* @type Longs -> Alias
*
* Globally available alias to type and object [[Idx.Immutable.Longs]]
*
* @type Floats -> Alias
*
* Globally available alias to type and object [[Idx.Immutable.Floats]]
*
* @type Doubles -> Alias
*
* Globally available alias to type and object [[Idx.Immutable.Doubles]]
*
* @type Refs -> Alias
*
* Globally available alias to type and object [[Idx.Immutable.Refs]]
*
* @def zzStream_Array -> Array to Stream
*
* Globally provides implicit conversion from Array to [[Stream]]
*
* @def zzStream_Scala_IterableOnce -> IterableOnce to Stream
*
* Globally provides implicit conversion from scala.collection.IterableOnce to [[Stream]]
*
* @def zzStream_Java_Iterable -> Java Iterable to Stream
*
* Globally provides implicit conversion from java.lang.Iterable to [[Stream]]
*
* @def zzStream_Java_Iterator -> Java Iterator to Stream
*
* Globally provides implicit conversion from java.util.Iterator to [[Stream]]
*/
You can’t perform that action at this time.