Join Slack
Powered by
How can we pass two high order functions to method...
# android
a
Ashok
09/25/2017, 2:33 PM
How can we pass two high order functions to method or constructor like adapter (items:List<string>, click:(Item) -> unit, long click:(item) -> unit)
a
arekolek
09/25/2017, 2:50 PM
btw, in your example,
adapter
is a higher-order function, but
click
and
long click
are normal (first-order) functions
3
Views
Open in Slack
Previous
Next