Returning tuple with variable number of elements
===

Im  experimenting  writing a  percentile utility in Scala. I was thinking  of writing a class  that is initialized with a variable number of int parameters .  For example a Percentile class  initialized with 50,95   means it can compute the 50th and th 95th percentiles .  The class would roughly look like this

`class PercentileUtil(num:Int*){ def collect(value:Int){// Add to a list} def compute = { //returns the 50th and 95th percentiles as a tuple  } ` 

How do define the function compute?