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


Listing0201.kts


Listing0202.kts


Listing0203.kts


Listing0204.kts


Listing0205.kts


Listing0206.kts


Listing0207.kts


Listing0208.kts


Listing0209.kts


Listing0210.kts


Listing0211.kts


Listing0212.kts


Listing0213.kts


Listing0214.kts


Listing0215.kts


Listing0220.kts


Listing0221.kts


Listing0222.kts


Listing0223.kts


Listing0224.kts


Listing0225.kt


Listing0226.kts


Listing0227.kts


Listing0228.kts


Listing0229.kts


Listing0230.kts


Listing0231.kts


Listing0232.kts


Listing0233.kts


Listing0234.kts


Listing0235.kts


Listing0236.kts


Listing0237.kts


Listing0238.kts


Listing0239.kts


Listing0240.kts