Scala Liste access on o(1) complexcity


(Zorttro) #1

how can i make an access to the laste element of scala list using 2 List β€œin” ,and "out"for inversion
:wink:
thanks for help


(Zorttro) #2

case class Queue[T](in: List[T], out: List[T]){

}