Notice
Recent Posts
Recent Comments
반응형
목록2018/01/06 (1)
오늘도 공부
list(추가 불가능함)에 add 를 달아보자
fun appendList(listOfLists: List, toAppend: List): List { }Of course both of the following work:fun appendList(listOfLists: List, toAppend: List): List { // Use spread operator return listOf(*listOfLists.toTypedArray(), toAppend); } fun appendList(listOfLists: List, toAppend: List): List { // Turn to mutable list val ret = listOfLists.toArrayList() ret.add(toAppend) return ret } But this is conf..
링크모음/코틀린
2018. 1. 6. 16:44
