Skip to content

Commit

Permalink
Add Scheme version
Browse files Browse the repository at this point in the history
  • Loading branch information
drak@bach committed Sep 28, 2018
1 parent 8f937c2 commit aae2dde
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ NOTE: These languages include compilation time which should be taken into consid
|----------|----------|-----------------------|
| Ruby | 195.601 | `time ruby fib.rb` |
| Php | 206.346 | `time php fib.php` |
| Guile | ??????? | `time guile fib.scm` |
| Python | 502.036 | `time python fib.py` |
| Python3 | 758.681 | `time python3 fib.py` |
| Perl | 1133.131 | `time perl fib.pl` |
Expand Down
7 changes: 7 additions & 0 deletions fib.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
(define (fib n)
(if (<= n 1) 1
(+ (fib (- n 1))
(fib (- n 2)))))

(display (fib 46))
(newline)

0 comments on commit aae2dde

Please sign in to comment.