Chapter 4 Labels and variants 4.1 Labels 4.1.1 Optional arguments 4.1.2 Labels and type inference 4.1.3 Suggestions for labeling 4.2 Polymorphic variants Basic use Advan...
What’s this look like, then? Lambdas Actor literals Primitive literals Sometimes it’s really convenient to be able to write a whole object inline. In Pony, this is called an o...
与 JavaScript 的互操作 Use JavaScript code from Kotlin external modifier @JsFun annotation @JsModule Use Kotlin code from JavaScript @JsExport annotation Kotlin types in JavaScrip...
Enum Classes Initialization Anonymous Classes Implementing Interfaces in Enum Classes Working with Enum Constants Enum Classes The most basic usage of enum classes is imple...
时序规范 时序规范 To be sure that the algorithm provides correct sequential behavior, you can define its sequential specification by writing a straightforward sequential implementation ...