A collection of Kotlin Puzzlers
Kotlin Java
Permalink
Failed to load latest commit information.
src make the lazy puzzler much easier to understand Dec 26, 2016
README.md add slides Dec 23, 2016
ideas.txt another puzzler idea with apply and not Dec 26, 2016

README.md

Kotlin Puzzlers

Kotlin is a pragmatic programming languages that was designed to avoid many well-known Java Puzzlers.

This is a collection that I have found so far.

What is a puzzler?

A puzzler is some code that doesn't work the way it seems it should work.

An ideal programming language won't have any.

The puzzlers here are presented as kts files (Kotlin Scripts), which can skip the main() function and are compiled on-the-fly when run, thus allowing some of them to have "will not compile" option.

Contributing

As is common with puzzlers, please submit yours (either pull requests or issues) and I will credit you during the next talk.

Presentations