Initial commit: 42 UN CLI implementations
Unsandbox CLI implementations in 42 programming languages for the permacomputer project. Public domain software for code execution across all ecosystems. Languages: Python, JavaScript, Ruby, Go, Rust, C, C++, Java, Kotlin, C#, F#, Haskell, OCaml, Clojure, Scheme, Common Lisp, Erlang, Elixir, D, Nim, Zig, V, Dart, Groovy, Scala, Julia, R, Crystal, Fortran, COBOL, Prolog, Forth, Tcl, Raku, Lua, PHP, Perl, Bash, TypeScript, Objective-C, PowerShell, AWK Includes test suites and service lifecycle tests.
This commit is contained in:
commit
2b35819393
143 changed files with 30022 additions and 0 deletions
8
test/fib.scm
Normal file
8
test/fib.scm
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
(define (fib n)
|
||||
(if (<= n 1)
|
||||
n
|
||||
(+ (fib (- n 1)) (fib (- n 2)))))
|
||||
|
||||
(do ((i 0 (+ i 1)))
|
||||
((> i 10))
|
||||
(display (string-append "fib(" (number->string i) ") = " (number->string (fib i)) "\n")))
|
||||
Loading…
Add table
Add a link
Reference in a new issue