Add comprehensive documentation for when statement and integrate related tests and references
This commit is contained in:
1 parent
4d1cd491e0
commit
28b961d339
3 files changed
+243
-1
No files matched your search
+3
-1
@@ -8,7 +8,7 @@ __Other documents to read__ maybe after this one:
|
||||
|
||||
- [Advanced topics](advanced_topics.md), [declaring arguments](declaring_arguments.md)
|
||||
- [OOP notes](OOP.md), [exception handling](exceptions_handling.md)
|
||||
- [math in Lyng](math.md)
|
||||
- [math in Lyng](math.md), [the `when` statement](when.md)
|
||||
- [time](time.md) and [parallelism](parallelism.md)
|
||||
- [parallelism] - multithreaded code, coroutines, etc.
|
||||
- Some class
|
||||
@@ -712,6 +712,8 @@ Or, more neat:
|
||||
|
||||
## When
|
||||
|
||||
See also: [Comprehensive guide to `when`](when.md)
|
||||
|
||||
It is very much like the kotlin's:
|
||||
|
||||
fun type(x) {
|
||||
|
||||
Reference in new issue
Block a user