Opal (programming language)
From Seo Wiki - Search Engine Optimization and Programming Languages
Jump to navigationJump to search
OPAL (OPtimized Applicative Language) is a functional programming language first developed at the Technical University of Berlin.
Example program
This is an example OPAL program, which calculates the GCD recursively.
Signature file:
SIGNATURE GCD FUN GCD: nat ** nat -> nat
Implementation file:
IMPLEMENTATION GCD
IMPORT Nat COMPLETELY
DEF GCD(a,b) == IF a % b = 0 THEN b
ELSE IF a-b < b THEN GCD(b,a-b)
ELSE GCD(a-b,b)
FI
FI
External links
| File:HelloWorld.svg | This programming language-related article is a stub. You can help Wikipedia by expanding it. |
If you like SEOmastering Site, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...
→