Commit current things
This commit is contained in:
13
koka_bench/picolisp/picolisp-deriv.l
Normal file
13
koka_bench/picolisp/picolisp-deriv.l
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
#{
|
||||
# Thanks to http://rosettacode.org/wiki/Multiline_shebang#PicoLisp
|
||||
exec pil $0 $1
|
||||
# }#
|
||||
|
||||
|
||||
|
||||
(de fib (n) (cond ((= 0 n) 1)
|
||||
((= 1 n) 1)
|
||||
(T (+ (fib (- n 1)) (fib (- n 2))))))
|
||||
|
||||
(bye (println (fib (car (str (opt))))))
|
||||
Reference in New Issue
Block a user