I am searching for a way to restrict my polymorphic class to types that have a certain member function.

```
class Table[T](bla: Array[T]) {
  val symbols = bla

  symbols.foreach( x => x * probability(x))

  def probability(t: T) : Double =  ...
}   

```

This code does not compile because T doesnt have member \*. How can I assure this. I dont want to use inheritance. 

Edit: probability is actually implemented. It returns a Double.

Any ideas?