нижняя и верхняя границы scala
#scala #generics #scala #дженерики Вопрос: class Queue[ T]( private val leading: List[T], private val trailing: List[T] ) { def append[U >: T](x: U) = new Queue[U](leading, x :: trailing) //…
#scala #generics #scala #дженерики Вопрос: class Queue[ T]( private val leading: List[T], private val trailing: List[T] ) { def append[U >: T](x: U) = new Queue[U](leading, x :: trailing) //…