Slowly moving into scala. Can either of these be done (apparently not the way I have them here)?
def genericFunc(param1:String, param2:String, specificFunc(param2:SpecficType):[T]):[T] =
{
val interim:SpecificType = makeSpecificType(param1,param2)
specificFunc(interim)
}
def genericFunc(param1:String, param2:String,specificFunc(param2:SpecficType):Object):Object ={
val interim:SpecificType = makeSpecificType(param1,param2)
specificFunc(interim)
}
or does the specificFunc need to be a trait/interface.