ROFL, in all examples where a function definition in the code, fun does not support functions actualy... :D
This commit is contained in:
parent
5272148946
commit
2f95b49bba
6 changed files with 16 additions and 11 deletions
|
|
@ -1,5 +1,7 @@
|
||||||
#!/usr/bin/env fun
|
#!/usr/bin/env fun
|
||||||
|
|
||||||
fun hello_world() {
|
/*
|
||||||
print("Hello, world!")
|
* Hello world in Fun
|
||||||
}
|
*/
|
||||||
|
|
||||||
|
print("Hello, world!")
|
||||||
|
|
|
||||||
9
fun.fun
Executable file
9
fun.fun
Executable file
|
|
@ -0,0 +1,9 @@
|
||||||
|
#!/usr/bin/env fun
|
||||||
|
|
||||||
|
print("Yay, the playground for having fun... ;)")
|
||||||
|
|
||||||
|
number n = 10
|
||||||
|
print(n)
|
||||||
|
|
||||||
|
string s = "Hello, world!"
|
||||||
|
print(s)
|
||||||
|
|
@ -1,3 +1 @@
|
||||||
fun hello_world() {
|
print("Hello, world!")
|
||||||
print("Hello, world!")
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,6 @@
|
||||||
* Hello, world!
|
* Hello, world!
|
||||||
*/
|
*/
|
||||||
|
|
||||||
fun hello_world() {
|
print("Hello, world!")
|
||||||
print("Hello, world!")
|
|
||||||
}
|
|
||||||
|
|
||||||
// Bye, world!
|
// Bye, world!
|
||||||
|
|
|
||||||
|
|
@ -307,4 +307,3 @@ print "Current time: " + now
|
||||||
## 12. License
|
## 12. License
|
||||||
|
|
||||||
This document and the Fun language reference are licensed under the Apache License 2.0
|
This document and the Fun language reference are licensed under the Apache License 2.0
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -414,4 +414,3 @@ print("Current time: " + now)
|
||||||
## 15. License
|
## 15. License
|
||||||
|
|
||||||
This document and the Fun language reference are licensed under the Apache License 2.0
|
This document and the Fun language reference are licensed under the Apache License 2.0
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue