Code Listings

All of these listings are also available in the book's GitHub repository

Please note that almost all of these listings currently assume running as a KTS scratch file which is not supported by the Kotlin browser plugin that enables these editable & runnable listings.
All listings will be adjusted soon to run as regular Kotlin files and thus work as expected here in the browser.

Switch chapter


Listing10.1.kts