Added types
This commit is contained in:
parent
cd1119add2
commit
83661c5e7a
33 changed files with 113 additions and 92 deletions
|
@ -15,14 +15,14 @@ main() {
|
|||
assert i == 1 + 4
|
||||
}
|
||||
|
||||
reverse2(a, b) {
|
||||
reverse2(a Int, b Int) -> (Int, Int) {
|
||||
return b, a
|
||||
}
|
||||
|
||||
reverse3(a, b, c) {
|
||||
reverse3(a Int, b Int, c Int) -> (Int, Int, Int) {
|
||||
return c, b, a
|
||||
}
|
||||
|
||||
mix4(a, b, c, d) {
|
||||
mix4(a Int, b Int, c Int, d Int) -> (Int, Int, Int, Int) {
|
||||
return d + a, c + b, b + c, a + d
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue