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


Listing0601.kts


Listing0602.kts


Listing0604.kts


Listing0605.kts


Listing0607.kts


Listing0608.kts


Listing0609.kt


Listing0610.kts


Listing0611.kts


Listing0612.kts


Listing0613.kt


Listing0615.kt


Listing0616.kts


Listing0617.kts


Listing0618.kts


Listing0619.kts


Listing0620.kts


Listing0621.kts


Listing0622.kts


Listing0623.kts


Listing0624.kts


Listing0625.kts


Listing0626.kts


Listing0627.kts


Listing0628.kts


Listing0629.kts


Listing0630.kts


Listing0631.kts


Listing0632.kts


Listing0633.kts


Listing0634.kts


Listing0635.kts


Listing0636.kts


Listing0637.kt


Listing0638.kt


Listing0639.kt


Listing0640.kts


Listing0642.kts


Listing0643.kts


Listing0644.kts


Listing0645.kts


Listing0646.kts


Listing0649.kts


Listing0650.kts


Listing0651.kts


Listing0652.kts


Listing0653.kts


Listing0654.kts


Listing0655.kt


Listing0656.kts


Listing0657.kts


Listing0658.kts


Listing0660.kts


Listing0661.kt


Listing0662.kts