Added types
This commit is contained in:
parent
cd1119add2
commit
83661c5e7a
33 changed files with 113 additions and 92 deletions
|
@ -4,7 +4,7 @@ main() {
|
|||
log.number(gcd(1071, 462))
|
||||
}
|
||||
|
||||
gcd(a, b) {
|
||||
gcd(a Int, b Int) -> Int {
|
||||
loop {
|
||||
switch {
|
||||
a == b { return a }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue