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


Listing0401.kts


Listing0402.kts


Listing0403.kts


Listing0404.kts


Listing0405.kts


Listing0406.kts


Listing0407.kts


Listing0408.kts


Listing0409.kts


Listing0410.kts


Listing0411.kts


Listing0412.kts


Listing0413.kts


Listing0414.kts


Listing0415.kts


Listing0416.kts


Listing0417.kts


Listing0418.kts


Listing0419.kts


Listing0420.kts


Listing0421.kts


Listing0422.kts


Listing0423.kts


Listing0424.kts


Listing0425.kts


Listing0426.kts


Listing0427.kts


Listing0428.kts


Listing0429.kts


Listing0430.kts


Listing0431.kt


Listing0432.kts


Listing0433.kts


Listing0434.kts


Listing0435.kts


Listing0436.kts


Listing0437.kts


Listing0438.kts


Listing0439.kts


Listing0440.kt


Listing0441.kt


Listing0442.kts


Listing0443.kts


Listing0444.kts


Listing0445.kts


Listing0446.kts


Listing0447.kts


Listing0448.kts


Listing0449.kts


Listing0450.kt


Listing0451.kts


Listing0452.kts


Listing0453.kts


Listing0454.kts


Listing0455.kts


Listing0456.kts


Listing0456JavaNote.java


Listing0457.kts


Listing0458.java


Listing0459.kts


Listing0460.kts


Listing0461.kts


Listing0462.kts


Listing0463.kts


Listing0464.kts


Listing0465.kts


Listing0466.kts


Listing0467.kts


Listing0468.kts


Listing0469.kts


Listing0470.kts


Listing0471.kts


Listing0472.kts


Listing0473.kts