Run the following command on terminal
$ sudo apt-get install libcr-dev mpich2 mpich2-doc
| import kotlin.coroutines.* | |
| import kotlin.coroutines.intrinsics.* | |
| /** | |
| * Defines deep recursive function that keeps its stack on the heap, | |
| * which allows very deep recursive computations that do not use the actual call stack. | |
| * To initiate a call to this deep recursive function use its [invoke] function. | |
| * As a rule of thumb, it should be used if recursion goes deeper than a thousand calls. | |
| * | |
| * The [DeepRecursiveFunction] takes one parameter of type [T] and returns a result of type [R]. |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.