add generics
This commit is contained in:
1 parent
79533e9537
commit
2204d58102
22 files changed
+47358
-37579
No files matched your search
+5
@@ -0,0 +1,5 @@
|
||||
add_ten: i32 -> i32: @ value: i32 { value + 10 }
|
||||
double: i32 -> i32: @ value: i32 { value * 2 }
|
||||
|
||||
# Stages bind tighter than prefix and infix operators: -{3->add_ten} + 2 * {3->double}.
|
||||
mixed: i32: -3->add_ten + 2 * 3->double - {1 + 1}->double
|
||||
Reference in new issue
Block a user