cedric
/** * Return the plug-in actor with the highest affinity. */ fun <T : ISimpleAffinity<A>, A> selectAffinityActor(actors: List<T>, arg: A) = actors.maxBy { it.affinity(arg) }