Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
pp:2025:scala:l02 [2025/03/16 01:34] cata_chiru |
pp:2025:scala:l02 [2025/03/16 01:35] (current) cata_chiru |
||
---|---|---|---|
Line 145: | Line 145: | ||
val close = curry_for_thread(process_data, 0, 1) | val close = curry_for_thread(process_data, 0, 1) | ||
- | # If you run this code into a Scala Worksheet you will see that "Hello" gets printed when calling the function bellow. | + | // If you run this code into a Scala Worksheet you will see that "Hello" gets printed when calling the function bellow. |
- | # This is thanks to the 0 parameter lambda in curry_for_thread that "forces" another call of the function for it to execute its body. | + | // This is thanks to the 0 parameter lambda in curry_for_thread that "forces" |
+ | // another call of the function for it to execute its body. | ||
run_in_thread(close) | run_in_thread(close) | ||
</code> | </code> |