How can we pass two high order functions to method...
# android
a
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
btw, in your example,
adapter
is a higher-order function, but
click
and
long click
are normal (first-order) functions