我已經包裹contructors以下高階函數: /**
* Wrapper for calling constructor with given parameters
*
* @param {Class} Cls
* @returns {function} Wrapper on constructor which creates an instance of given Class
*/
假設我有一個更高階的函數,它註冊某種點擊監聽器。我可以記錄它的目的而這在通過像這樣的listener參數: /**
* Adds a [listener] that's called when the item is clicked.
*
* @param listener The listener to add
*/
fun addClickListener(listener: (co