how to define a type name instead of ```(String, D...
# getting-started
c
how to define a type name instead of
Copy code
(String, Double, Int) -> String
to define a function type?
s
The simplest would be a type alias:
Copy code
typealias MyFunction = (String, Double, Int) -> String

val foo: MyFunction = { a, b, c -> … }
👍 1