Dunder is written in Ruby so to use Dunder you will need a working installation of Ruby. Once you have that, follow the instructions below:
- Download the source from Github.
- Run the unit-tests to make sure everything is working by running the run_tests.rb file in the project-directory.
- Use Dunder by running the lib/dunder.rb file.
age = 10
if(age < 21) {
print "Hello kid!"
}
A recursive function to calculate a number in the Fibonacci sequence
def fib(n) {
if (n <= 1) {
return n
} else {
return fib(n-1)+fib(n-2)
}
}