Scalqa
Member
Language Extensions
Def is fully exported to scalqa root, thus all members and aliases of Def can be called with or without "Def." prefix.
For example:
val v: Def.Byte.Idx = ???
// is same as
val v: Byte.Idx = ???
val v: Def.Any.Ref.Buffer[String] = ???
// is same as
val v: Any.Ref.Buffer[String] = ???
// is same as
val v: Ref.Buffer[String] = ???
- Source
- __.scala
General Utilities
Gen is fully exported to scalqa root, thus all members and aliases of Gen can be called with or without "Gen." prefix.
For example:
val v: Gen.Number.Percent = ???
// is same as
val v: Gen.Percent = ???
// is same as
val v: Percent = ???
- Source
- __.scala
Value Container Framework
Note: Half the members are collections: Buffer, Collection, Idx, Pack, and Lookup
Val is fully exported to scalqa root, thus all members and aliases of Val can be called with or without "Val." prefix.
For example:
val v: Val.~[Int] = ???
// is same as
val v: Stream[Int] = ???
// is same as
val v: Val.~[Int] = ???
// is same as
val v: ~[Int] = ???
- Source
- __.scala
Alias
Companion operator alias
Companion operator alias
Shortcut to Val.Stream
Note.
The Stream companion alias is a double tilde (~~
) instead of a single (~
).
This exception is made only for root object scalqa.~~ , scalqa.Val.~
companion is stil single tilde.
val s1 : ~[String] = ~~("a","b","c")
val s2 : ~[String] = Stream("a","b","c")
val s3 : ~[String] = Val.~("a","b","c")
The reason for the exception is twofold:
1. ~
is universally used as a method name, which would conflict with unprefixed companion inside some classes
2. Simple expression ~("a","b","c") compiles in Scala as a prefix method on Tuple3, but ~~("a","b","c") works fine as ~~.apply("a","b","c")
- Source
- root.scala