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
- Java7
- 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
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)
...
-
1 2 3 4 5 6 7 8
object Main { implicit def toFactorable(n: Int) = new FactorableInt(n) class FactorableInt(n: Int) { def fact(): Int = factorial(n) def add(m: Int) : Int = m + n }
...
-
1 2 3 4 5 6 7 8
object Main { implicit def toFactorable(n: Int) = new FactorableInt(n) class FactorableInt(n: Int) { def fact(): Int = factorial(n) def add(m: Int) : Int = m + n }
...
-
1 2 3 4 5 6 7 8 9
object Main { implicit def toFactorable(n: Int) = new FactorableInt(n) class FactorableInt(n: Int) { def !(): Int = factorial(n) } def main(args: Array[String]) {
...
-
1 2 3 4 5 6 7 8 9
object Main { implicit def toFactorable(n: Int) = new FactorableInt(n) class FactorableInt(n: Int) { def !(): Int = factorial(n) } def main(args: Array[String]) {
...
-
1 2 3 4 5 6 7 8 9
object Main { implicit def toFactorable(n: Int) = new FactorableInt(n) class FactorableInt(n: Int) { def <>(): Int = factorial(n) } def main(args: Array[String]) {
...
-
1 2 3 4 5 6 7 8 9
object Main { implicit def toFactorable(n: Int) = new FactorableInt(n) class FactorableInt(n: Int) { def <>(m : Int): Int = factorial(n) } def main(args: Array[String]) {
...
-
1 2 3 4 5 6 7 8 9
object App { implicit def toFactorable(n: Int) = new FactorableInt(n) class FactorableInt(n: Int) { def <>(m : Int): Int = factorial(n) } def main(args: Array[String]) {
...
-
1 2 3 4 5 6 7 8 9
object App { implicit def toFactorable(n: Int) = new FactorableInt(n) class FactorableInt(n: Int) { def unary_!(): Int = factorial(n) } def main(args: Array[String]) {
...
-
1 2 3 4 5 6 7 8
object App { implicit def toFactorable(n: Int) = new { def unary_!(): Int = factorial(n) } def main(args: Array[String]) { val n = 5 println(toFactorable(n) !)
...


