Created
September 27, 2015 19:27
-
-
Save patrykpoborca/5cfdfb0f1b1da92f47aa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package i_introduction._0_Hello_World.Hello | |
import util.TODO | |
//compiles to a static function in a class HelloPackage | |
fun main(args: Array<String>) { | |
println("Hello, world!") | |
} | |
fun todoTask0() = TODO( | |
""" | |
Introduction: | |
Workshop tasks are usually to change the function 'taskN' by replacing its body | |
(which starts out as the function invocation 'todoTaskN()'), with the correct code according to the problem. | |
The function 'todoTaskN()' throws an exception, so you usually have to replace that invocation with | |
meaningful code. | |
There are usually explanations of the Kotlin features to use in the same file as the task. | |
Please read them; we prepared them carefully for you =). | |
Using references you can usually navigate and see the code mentioned in the task description. | |
To start please make the function 'task0' return "OK" =). | |
""", | |
references = { task0(); "OK" } | |
) | |
fun task0(): String { | |
return todoTask0() | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment