This website requires JavaScript.
Explore
Help
Sign in
knazarov
/
valeri
Watch
1
Star
0
Fork
You've already forked valeri
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
02d1d51383
valeri
/
example.vli
8 lines
101 B
Text
Raw
Normal View
History
Unescape
Escape
Implement enough of function call support to make "factorial" function
2024-08-23 23:28:29 +00:00
(fn fact (n)
(if (<= n 0)
1
(* n (fact (- n 1)))))
Make function-declaration example compile and work
2024-08-23 21:21:00 +00:00
Implement basic stdlib and a simple "println" function callable from lisp
2024-08-24 23:55:11 +00:00
Update README.md for brevity
2024-11-03 21:07:11 +00:00
(println "12! =" (fact 12))
Reference in a new issue
Copy permalink