I'm curious about how the Koans work: in each .kt ...
# getting-started
r
I'm curious about how the Koans work: in each .kt file is a function called
task0
,
task1
, and so forth. When I run the Gradle
test
item by right-clicking on it and choosing
Run
or
Debug
, all the Koans are built and the
task0
,
task1
, etc. functions run (or are debugged). The question is "how does IJ know to run
taskX
and not
taskTodoX
or any of the other functions in each file?" I grepped the directory for
task
and didn't find any hint in the various build and shell scripts for how the system knows the entry point to call in each .kt file.