Interactive Kotlin with kscript and fswatch

Experimenting with snippets of code and getting rapid feedback is an effective way to get up to speed with a new language or library. I’ve been playing around with Kotlin and Λrrow at work this week, so have been looking for tools that help achieve this workflow. Worksheets in IntelliJ provide some of this functionality, but personally I prefer the immediacy of a text editor and the command line for this kind of thing.