저는 스칼라를 배우기 시작했습니다.스칼라에서 하나, 둘, 많은 인수를 선언하십시오.
def -=(elem1: A, elem2: A, elems: A*): Map.this.type
Removes two or more elements from this shrinkable collection.
elem1 the first element to remove.
elem2 the second element to remove.
elems the remaining elements to remove.
returns the shrinkable collection itself
가 왜 elem1
및 elem2
방금 어쨌든 *
와 elems
를 정의하는거야 경우 명시 적으로 정의해야 다음 Scaladocs을 검색하는 동안 나는 mutable.Map
에서이 메서드 정의를 보았다?
링크는'Set'이 아닌'mutable.Map'을 참조합니다. 코드가'Map'을 참조하기 때문에 나는 자유의 길을 따라 링크의 텍스트를 업데이트했다. –