This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object prereg { | |
def OptList[A](in: List[A]): List[Option[A]] = | |
None :: in.toList.map(Some(_)) | |
object GG extends Enumeration { val CT, SA, SDIL = Value } | |
object Affinity extends Enumeration { | |
val Agent, Individual, Org_Admin, Org_Assistant, Other = Value | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package zero { | |
trait Zero[A] { | |
def zero: Option[A] | |
def zeroN(s: String): Option[A] = zero | |
} | |
object Zero { | |
def apply[A](implicit e: Zero[A]): Zero[A] = e |