Data update
This commit is contained in:
parent
5af6d93694
commit
796d366b97
455 changed files with 7413 additions and 1900 deletions
14
Task/Inverted-syntax/Koka/inverted-syntax.koka
Normal file
14
Task/Inverted-syntax/Koka/inverted-syntax.koka
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
fun (=:)(c: c, v: local-var<h, c>): <local<h>> ()
|
||||
v := c
|
||||
|
||||
fun (?)(c: c, b: bool): e maybe<c>
|
||||
if b then Just(c) else Nothing
|
||||
|
||||
fun main()
|
||||
var x := 4
|
||||
6 =: std/core/types/byref(x)
|
||||
x.println
|
||||
val res = "Yes" ? True
|
||||
match res
|
||||
Just(a) -> println(a)
|
||||
Nothing -> throw("Nothing")
|
||||
Loading…
Add table
Add a link
Reference in a new issue