Is there something similar to a typedef in Scala for closures?
Something similar to:
typedef (a: Any*) => Boolean MyType
type MyType = (Any*) => Boolean
NB the type
keyword can't be used at the package
level; use it in an object
, trait
or class
(or package object
).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.