diff options
| author | Shinya Sato <shinnya.sato@gmail.com> | 2022-08-28 20:50:58 +0900 |
|---|---|---|
| committer | Shinya Sato <shinnya.sato@gmail.com> | 2022-08-28 20:50:58 +0900 |
| commit | 4b0da2732d7adcaa7d85db2ee329f8a52ef88c42 (patch) | |
| tree | bcd9b731dc32b7fc9e9184b3270c1450008168fd /README.md | |
| parent | baa27f2adf0ad741add152bcbca6ffbd312ef066 (diff) | |
| parent | 6077933906dd637af93adb3714b476ccba724be1 (diff) | |
| download | inpla-4b0da2732d7adcaa7d85db2ee329f8a52ef88c42.tar.gz inpla-4b0da2732d7adcaa7d85db2ee329f8a52ef88c42.zip | |
Merge branch 'develop'
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -121,14 +121,15 @@ Inpla is a multi-threaded parallel interpreter of interaction nets. Once you wri ``` // Example program in Python - // def gcd(a: Int, b: Int): Int = - // if (b==0) a else gcd(b, a%b) + // def gcd(a, b): + // if b==0: return a + // else: return gcd(b, a%b) // Rules gcd(ret) >< (int a, int b) | b==0 => ret ~ a | _ => gcd(ret) ~ (b, a%b); - + // Nets gcd(r) ~ (14,21); r; // it should be 7 |
