This file contains 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 com.comcast.ues.vcwloader | |
import scala.io.Source | |
import scala.collection.mutable.{MultiMap, HashMap => MHash, Set => MSet} | |
object VcwLoader extends App { | |
override def main(args: Array[String]) { | |
new VcwLoader().loadData | |
} | |
} |
This file contains 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
scala> Map("0110529461001" -> Set("0010ddecf7", "0010da6be5"), "0110519163601" -> Set("0010edc96f"), "0110513382403" -> Set("0010edcaee"), "0110519771404" -> Set("0010ddee12")) | |
res0: scala.collection.immutable.Map[java.lang.String,scala.collection.immutable.Set[java.lang.String]] = Map(0110529461001 -> Set(0010ddecf7, 0010da6be5), 0110519163601 -> Set(0010edc96f), 0110513382403 -> Set(0010edcaee), 0110519771404 -> Set(0010ddee12)) | |
scala> Map("0010da6be5" -> Set("!|", "!("), "0010ddecf7" -> Set( "!_"), "0010ddee12" -> Set( "!&"), "0010edcaee" -> Set( "|&"), "0010edc96f" -> Set( "!|", "!&", "|_")) | |
res1: scala.collection.immutable.Map[java.lang.String,scala.collection.immutable.Set[java.lang.String]] = Map(0010ddee12 -> Set(!&), 0010edcaee -> Set(|&), 0010da6be5 -> Set(!|, !(), 0010edc96f -> Set(!|, !&, |_), 0010ddecf7 -> Set(!_)) | |
scala> Map("!&" -> Set("91", "32859"), "!I" -> Set("60", "32838", "61", "88", "63", "32856", "62", "58", "32807", "32802", "145149", "40", "32803", "1", "32808", "59", "39", "34" |
This file contains 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
import scala.actor._ | |
import scala.actor.Actor._ | |
sealed trait DoSomething | |
case class SaySomething(text: String) extends DoSomething | |
case class YellSomething(text: String) extends DoSomething | |
object DuncanExample { | |
def main(args: Array[String]) { | |
val nActors = 5 |
NewerOlder