Skip to content

Instantly share code, notes, and snippets.

@sullivan-
Created March 26, 2013 03:38
private val seedTestData: List[Int] = (1 to 100).toList
private def intToName(i: Int): Name = Name(i.toString)
private def intToNumber(i: Int): Number = Number(i.toString)
private def intToRegistration(i: Int): Registration = Registration(i.toString)
private def intToTaxOwed(i: Int): TaxOwed = TaxOwed(i.toDouble)
val names: List[Name] = seedTestData map intToName
val numbers: List[Number] = seedTestData map intToNumber
val registrations: List[Registration] = seedTestData map intToRegistration
val taxesOwed: List[TaxOwed] = seedTestData map intToTaxOwed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment