1
0
Fork 0
mirror of https://github.com/Reuh/anselme.git synced 2025-10-28 09:09:31 +00:00

Prefix type checkers with "is", stdlib cleanup

This commit is contained in:
Étienne Fildadut 2024-01-06 15:00:08 +01:00
parent 98917c2ca4
commit 7f71569e07
25 changed files with 163 additions and 160 deletions

View file

@ -1,7 +1,7 @@
:$ fn(x::number)
:$ fn(x::is number)
|x
:$ fn(a::string="o")
:$ fn(a::is string="o")
|a
fn("s")
@ -10,10 +10,10 @@ fn(5)
fn()
:$ g(n="s", a::number=5)
:$ g(n="s", a::is number=5)
return("gn")
:$ g(n="s", a::string="lol")
:$ g(n="s", a::is string="lol")
return("gs")
|{g(n="k", a="l")}