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


Listing0301.kts


Listing0302.kts


Listing0303.kts


Listing0304.kts


Listing0305.kts


Listing0306.kts


Listing0307.kts


Listing0308.kts


Listing0309.kts


Listing0310.kts


Listing0311.kts


Listing0312.kts


Listing0313.kts


Listing0314.kts


Listing0315.kts


Listing0316.kts


Listing0317.kts


Listing0318.kts


Listing0319.kts


Listing0320.kts


Listing0321.kts


Listing0322.kts


Listing0323.kts


Listing0324.kts


Listing0325.kts


Listing0326.kts


Listing0327.kts


Listing0328.kts


Listing0329.kts


Listing0330.kts


Listing0331.kts


Listing0332.kts


Listing0333.kts


Listing0334.kts


Listing0335.kts


Listing0336.kts


Listing0337.kts


Listing0338.kts


Listing0339.kts


Listing0340.kts


Listing0341.kts


Listing0342.kts


Listing0343.kts


Listing0344.kts


Listing0345.kts


Listing0346.kts


Listing0347.kts


Listing0348.kts


Listing0349.kts


Listing0350.kts


Listing0351.kts


Listing0352.kts


Listing0353.kts


Listing0354.kts


Listing0355.kts


Listing0357.kts