head 대신 색인으로 컬렉션의 첫 번째 요소에 접근하는 경우를 보고합니다.
head
예:
var seq: Seq[Int] seq(0) seq.apply(0)
빠른 수정 적용 후:
var seq: Seq[Int] seq.head seq.head