Logo
Explore Help
Sign In
miloignis/kraken
1
0
Fork 0
You've already forked kraken
Code Issues Pull Requests Packages Projects Releases Wiki Activity
Files
a268f1b76853104d78263090a11d866c7e6d6850
kraken/stdlib/math.krak

10 lines
147 B
Plaintext
Raw Normal View History

Added trivial standard library and search paths.
2014-05-01 01:18:01 -04:00
Declarations are now written |type| identifier;, generally. Functions are similar |void| func() {}, etc. Special declarations still work, etc
2014-08-01 00:45:48 -07:00
|int| NotPi = 3;
|float| Pi = 3.141592654;
Added trivial standard library and search paths.
2014-05-01 01:18:01 -04:00
Declarations are now written |type| identifier;, generally. Functions are similar |void| func() {}, etc. Special declarations still work, etc
2014-08-01 00:45:48 -07:00
|int| fibanacci(|int| num) {
Added trivial standard library and search paths.
2014-05-01 01:18:01 -04:00
if (num < 2)
return 1;
return fibanacci(num-1) + fibanacci(num-2);
Declarations are now written |type| identifier;, generally. Functions are similar |void| func() {}, etc. Special declarations still work, etc
2014-08-01 00:45:48 -07:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 649ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API