Recent public codes are listed below. You can filter them by the following programming languages:
- view
- All
- Ada
- Assembler
- Assembler
- AWK (gawk)
- AWK (mawk)
- Bash
- bc
- Brainf**k
- C
- C#
- C++
- C++0x
- C99 strict
- CLIPS
- Clojure
- COBOL
- COBOL 85
- Common Lisp (clisp)
- D (dmd)
- Erlang
- F#
- Factor
- Falcon
- Forth
- Fortran
- Go
- Groovy
- Haskell
- Icon
- Intercal
- Java
- JavaScript (rhino)
- JavaScript (spidermonkey)
- Lua
- Nemerle
- Nice
- Nimrod
- Objective-C
- Ocaml
- Oz
- Pascal (fpc)
- Pascal (gpc)
- Perl
- Perl 6
- PHP
- Pike
- Prolog (gnu)
- Prolog (swi)
- Python
- Python 3
- R
- Ruby
- Scala
- Scheme (guile)
- Smalltalk
- SQL
- Tcl
- Text
- Unlambda
- VB.NET
- Whitespace
-
1 2 3 4 5 6 7
(defun factorial (n) (if (= n 0) 1 (* n (factorial (- n 1))) ) ) (loop for i from 0 to 16 do (format t "~D! = ~D~%" i (factorial i)) )
-
1 2 3 4 5
(defun fu (x y) (if (or (= x 0) (= y 0)) (+ x y) (if (>= x y) (fu (- x y) y) (fu x (- y x))))) (format t "~A:" (fu 10 12)) (format t "~A:" (fu 21 15)) (format t "~A:" (fu 32 41)) (format t "~A" (fu 60 81))
-
1 2 3 4 5
(defun fu (x y) (if (or (= x 0) (= y 0)) (+ x x) (if (>= x y) (fu (- x y) y) (fu x (- y x))))) (format t "~A:" (fu 10 12)) (format t "~A:" (fu 21 15)) (format t "~A:" (fu 32 41)) (format t "~A" (fu 60 81))
-
1 2 3 4 5
(defun fu (x y) (if (or (= x 0) (= y 0)) (+ x x) (if (>= x y) (fu (- x y) y) (fu x (- y x))))) (format t "~A:" (fu 10 12)) (format t "~A:" (fu 21 15)) (format t "~A:" (fu 32 41)) (format t "~A" (fu 60 81))
-
1 2 3 4 5
(defun fu (x y) (if (or (= x 0) (= y 0)) (- x y) (if (>= x y) (fu (- x y) y) (fu x (- y x))))) (format t "~A:" (fu 10 12)) (format t "~A:" (fu 21 15)) (format t "~A:" (fu 32 41)) (format t "~A" (fu 60 81))
-
1 2
(defun fu (x y) (if (or (= x 0) (= y 0)) (- x y) (if (>= x y) (fu (- x y) y) (fu x (- y x))))) (format t "~A:" (fu 10 12))
-
1 2 3 4 5 6 7 8
(defun ff (x y) (cond ( (null y) nil ) ( (eq x (car y)) (ff x (cdr y)) ) ( T (cons x (ff x (cdr y))) ) ) ) (ff '3 '(1 2 3 4 5))
-
1 2 3 4 5 6 7 8
(defun ff (x y) (cond ( (null y) nil ) ( (eq x (car y)) (ff x (cdr y)) ) ( T (cons x (ff x (cdr y))) ) ) ) (ff '3 '(1 2 3 4 5))
-
1 2 3 4 5 6 7
(defun ff (x y) (cond ( (null y) nil ) ( (eq x (car y)) (ff x (cdr y)) ) ( T (cons x (ff x (cdr y))) ) ) )
-
1 2 3 4 5 6 7
(defun ff (x y) (cond ( (null y) nil ) ( (eq x (car y)) (ff x (cdr y)) ) ( T (cons x (ff x (cdr y))) ) ) )
-
1 2 3 4 5 6 7
(defun ff (lambda (x y) (cond ( (null y) nil ) ( (eq x (car y)) (ff x (cdr y)) ) ( T (cons x (ff x (cdr y))) ) ) ))
-
1 2 3 4 5 6 7 8 9
(defun fu (x y) (if (or (= x 0) (= y 0)) (+ y y) (if (>= x y) (fu (- x y) y) (fu x (- y x)) ) ) )
...
-
1 2 3 4 5 6 7 8 9
(defun fu (x y) (if (or (= x 0) (= y 0)) (+ y y) (if (>= x y) (fu (- x y) y) (fu x (- y x)) ) ) )
...
-
1 2 3 4 5 6 7 8 9
(defun fu (x y) (if (or (= x 0) (= y 0)) (+ y y) (if (>= x y) (fu (- x y) y) (fu x (- y x)) ) ) )
...
-
1 2 3 4 5 6 7 8 9
(defun fu (x y) (if (or (= x 0) (= y 0)) (+ y y) (if (>= x y) (fu (- x y) y) (fu x (- y x)) ) ) )
...
-
1 2 3 4 5 6 7 8 9
(defun fu (x y) (if (or (= x 0) (= y 0)) (+ y y) (if (>= x y) (fu (- x y) y) (fu x (- y x)) ) ) )
...
-
1
(+ 3 5)
-
1
(+3 5)
-
1
(quote (+3 5))
-
1 2 3 4 5 6 7 8 9
1 2 3 4 (loop for line = (read-line *standard-input* nil nil) while (not (equal line "42")) do (format t "~A~%" line))
...
-
1 2 3 4
(loop for line = (read-line *standard-input* nil nil) while (not (equal line "42")) do (format t "~A~%" line))
-
1 2 3 4 5 6 7 8 9
(defun avg (l) (let ((sum (foldl (lambda (x u) (cons (+ (car u) (car x)) (+ (cdr u) (cdr x)))) (cons 0 0) (map (lambda (x) (cons x 1)) l)))) (/ (car sum) (cdr sum)))) (defun test (list 1 2 3 4 5))
...
-
1 2 3 4 5 6 7 8 9
(defun avg (l) (let ((sum (foldl (lambda (x u) (cons (+ (car u) (car x)) (+ (cdr u) (cdr x)))) (cons 0 0) (map (lambda (x) (cons x 1)) l)))) (/ (car sum) (cdr sum)))) (defun test '(1 2 3 4 5))
...
-
1 2 3 4 5 6 7 8 9
(defun avg (l) (let ((sum (foldl (lambda (x u) (cons (+ (car u) (car x)) (+ (cdr u) (cdr x)))) (cons 0 0) (map (lambda (x) (cons x 1)) l)))) (/ (car sum) (cdr sum)))) (define test '(1 2 3 4 5))
...
-
1 2 3 4 5 6 7 8 9
(defun (avg l) (let ((sum (foldl (lambda (x u) (cons (+ (car u) (car x)) (+ (cdr u) (cdr x)))) (cons 0 0) (map (lambda (x) (cons x 1)) l)))) (/ (car sum) (cdr sum)))) (define test '(1 2 3 4 5))
...
-
1 2 3 4 5 6 7 8 9
(define (avg l) (let ((sum (foldl (lambda (x u) (cons (+ (car u) (car x)) (+ (cdr u) (cdr x)))) (cons 0 0) (map (lambda (x) (cons x 1)) l)))) (/ (car sum) (cdr sum)))) (define test '(1 2 3 4 5))
...
-
1
(+ 1 2)
-
1
(+ 1 2)
-
1 2 3 4
(loop for line = (read-line *standard-input* nil nil) while (not (equal line "42")) do (format t "~A~%" line))
-
1 2 3 4 5 6
(defun k-combinator (x y) (y x) x) (k-combinator 10 format t "%a")


