Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (8 sloc) 262 Bytes
package me.ivanyu.common
class Query[P <: Product] (parameters: Seq[TypedParameter]) {
def execute(parameterValues: P): Unit = {
val zipped = parameters zip parameterValues.productIterator.toList
println(s"Much magic: $zipped")
// Your code
}
}