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 8
object Main { def main(args:Array[String]) { import java.{util => U} val d : U.Date = new u.Date println apply d }
-
1 2 3 4 5 6 7 8 9
import java.io.{BufferedReader, InputStreamReader} object Main { def main(args: Array[String]) { var stdin = new BufferedReader(new InputStreamReader(System.in)); var line = stdin.readLine(); while(false == line.equals("42")) { System.out.println(line);
...
-
1 2 3 4 5 6 7 8 9
import java.io.{BufferedReader, InputStreamReader} object Main { def main(args: Array[String]) { var stdin = new BufferedReader(new InputStreamReader(System.in)); var line = stdin.readLine(); while(false == line.equals("42")) { System.out.println(line);
...
-
1 2 3 4 5 6 7 8 9
object Main { def main (args: Array [String]): Unit = { def fix [A,B] (f : (A => B) => A => B) : A => B = (x: A) => f (fix (f)) (x) val prime1 = Stream.cons (2,
...
-
1 2 3 4 5 6 7 8 9
object Main { def main (args: Array [String]): Unit = { def unfoldr [A,B] (seed: A, prod: A => Pair [B,A]) : Stream [B] = prod (seed) match { case (x,y) => Stream.cons (x, unfoldr (y, prod)) }
...
-
1 2 3 4 5 6 7 8 9
object Main { def main (args: Array [String]): Unit = { def unfoldr [A,B] (seed: A, prod: A => Pair [B,A]) : Stream [B] = prod (seed) match { case (x,y) => Stream.cons (x, unfoldr (y, prod)) }
...
-
1 2 3 4 5 6 7 8 9
object Main { def main (args: Array [String]): Unit = { def unfoldr [A,B] (seed: A, prod: A => Pair [B,A]) : Stream [B] = prod (seed) match { case (x,y) => Stream.cons (x, unfoldr (y, prod)) }
...
-
1 2 3 4 5 6 7 8 9
object Main { def main (args: Array [String]): Unit = { def unfoldr [A,B] (seed: A, prod: A => Pair [B,A]) : Stream [B] = prod (seed) match { case (x,y) => Stream.cons (x, unfoldr (y, prod)) }
...
-
1 2 3
object a extends Application { print("Hello world") }
-
1 2 3
object a extends App { print("Hello world") }
-
1 2 3
object a extends App { print"Hello world") }
-
1 2 3 4 5 6 7 8 9
object Main { def main (args: Array [String]): Unit = { def unfoldr [A,B] (seed: A, prod: A => Pair [B,A]) : Stream [B] = prod (seed) match { case (x,y) => Stream.cons (x, unfoldr (y, prod)) }
...
-
1 2 3 4 5 6 7 8 9
object Main { def main(args: Array[String]) { def curriedSum(x: Int, y: Int) = x + y def a = curriedSum(8, _:Int) println(a) } }
-
1 2 3 4 5 6 7 8 9
object Main { def main(args: Array[String]) { def curriedSum(x: Int, y: Int) = x + y def a = curriedSum(8, _) println(a) } }
-
1 2 3 4 5 6 7 8 9
object Main { def main(args: Array[String]) { def curriedSum(x: Int, y: Int) = x + y val a = curriedSum(8, _:Long) println(a) } }
-
1 2 3 4 5 6 7 8 9
object Main { def main(args: Array[String]) { def curriedSum(x: Int, y: Int) = x + y val a = curriedSum(8, _) println(a) } }
-
1 2 3 4 5 6 7 8 9
object Main { def main(args: Array[String]) { def curriedSum(x: Int)(y: Int) = x + y val a = curriedSum(8)_ println(a) } }
-
1 2 3 4 5 6 7 8 9
object Main { def main(args: Array[String]) { def curriedSum(x: Int)(y: Int) = x + y val a = curriedSum(8) _ println(a) } }
-
1 2 3 4 5 6 7 8 9
object Main { def main(args: Array[String]) { def curriedSum(x: Int)(y: Int) = x + y val a = curriedSum(8) println(a) } }
-
1 2 3 4 5 6 7 8 9
object Main { def main(args: Array[String]) { def curriedSum(x: Int)(y: Int) = x + y val a = currierSum(8) println(a) } }
-
1 2 3 4 5 6 7 8
object Main { def main(args: Array[String]) { def printAll(a: String*) { a foreach println } printAll(args: _*) }
-
1 2 3 4 5 6 7 8
object Main { def main(args: Array[String]) { def printAll(a: String*) { a foreach println } printAll(args: _*) }
-
1 2 3 4 5 6 7 8
object Main { def main(args: Array[String]) { def printAll(a: String*) { a foreach println } printAll(args: String*) }
-
1 2 3 4 5 6 7 8
object Main { def main(args: Array[String]) { def printAll(a: String*) { a foreach println } printAll(args*) }
-
1 2 3 4 5 6 7 8
object Main { def main(args: Array[String]) { def printAll(a: String*) { a foreach println } printAll(args) }
-
1 2 3 4 5 6 7 8
object Main { def main(args: Array[String]) { def printAll(a: String*) { a foreach println } printAll("z", "x", "y") }
-
1 2 3 4 5 6 7 8 9
object Main { def main(args: Array[String]) { println(for (j <- 1 to 10) yield { String.format("%4s", j.toString) } mkString) }
...
-
1 2 3 4 5 6 7 8 9
object App { def main(args: Array[String]) { println(for (j <- 1 to 10) yield { String.format("%4s", j.toString) } mkString) }
...
-
1 2 3 4 5 6 7 8 9
object App { def main(args: Array[String]) { println(for (j <- 1 to 10) yield { String.format("%4d", j) } mkString) }
...
-
1 2 3 4 5 6 7 8
object App { def main(args: Array[String]) { println(for (j <- 1 to 10) yield { val prod = (i * j).toString String.format("%4s", Array(prod)) } mkString)
...


