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
class A{} class B:A{} def c = A() : object == B();
-
1 2
class A{} class B:A{} def c = A() == B();
-
1 2 3 4 5 6 7
class A {} class B {} def a = A(); def b = B(); def d = a : object == b; // Компилируется
-
1 2 3 4 5 6 7
class A {} class B {} def a = A(); def b = B(); def d = a : object == b; // компилируется, вызовется
-
1 2 3 4 5 6 7
class A {} class B {} def a = A(); def b = B(); def c = a == b;
-
1 2 3
def a = Some("a"); def b = "a"; def c = a : object == b;
-
1 2 3
def a = Some("a"); def b = "a"; def c = a == b;
-
1 2 3
def a = Some(4); def b = 4; def c = a == b;
-
1 2 3 4 5 6 7 8
def dict = Dictionary(); // Dude, where are my type params? dict.Add("key", 42); // The type params infered from usage! def theType = dict.GetType(); WriteLine(theType); def expected = typeof(Dictionary[string, int]); Trace.Assert(theType.Equals(expected));
-
1 2 3 4 5 6 7 8 9
using System; public class StaticInner { public static void main(String str[]) { int a=0, b=0; System.out.print(++a + +b++); }
-
1 2 3 4 5 6 7
using Nemerle.Collections; def l = [1, 2, 3]; def incr(x) { x + 1 }; def lplus1 = List.Map(l, incr); System.Console.WriteLine(lplus1)
-
1 2 3 4 5 6 7
using Nemerle.Collections; def (l : list[int])= [1, 2, 3]; //def lplus1 = List.Map(l, fun(x) {x + 1}); def lplus1 = l.Map( fun(x) {x+1}) System.Console.WriteLine(lplus1)
-
1 2 3 4 5 6
using Nemerle.Collections; def (l : list[int])= [1, 2, 3]; def l2 = List.Map(l, fun(x) {x + 1}); System.Console.WriteLine(l2)
-
1 2 3 4 5 6
using Nemerle.Collections; def l = [1, 2, 3]; def l2 = List.Map(l, fun(x) {x + 1}); System.Console.WriteLine(l2)
-
1 2 3 4 5 6 7 8 9
// slightly modified factorial sample from Nemerle.org's front page def facacc(n, accu) { | (0, _) | (1, _) => accu | _ => facacc( n - 1, n * accu) } // Hmm: "def fac = facacc(_,1)" seems to compile but calling it below would fail... def fac(n) { facacc(n,1) } // this here works
...
-
1 2 3 4 5 6 7 8
// factorial sample from Nemerle.org's front page def facacc(n, accu) { | (0,1) | (1,0) => accu | _ => facacc( n - 1, n * accu) }
...
-
1 2 3 4 5 6 7 8
// factorial sample from Nemerle.org's front page def facacc(n, accu) { | (0,1) | (1,0) => accu | _ => facacc( n - 1, n * accu) }
...
-
1 2 3 4 5 6 7
using System.Console; using Nemerle.Collections; def l = [1,2,3]; def l2 = l.Map(_ + 1); Write(l2.ToString());
-
1 2 3 4 5 6
using System.Console; def l = [1,2,3]; def l2 = l.Map(_ + 1); foreach (v in l2) Write(v);
-
1 2 3 4 5 6
using System.Console; def l = [1,2,3]; def l2 = l.Map(_ + 1); Write($"..$l2");
-
1 2 3 4 5 6
using System.Console; def l = [1,2,3]; def l2 = l.Map(_ + 1); Write($"$..l2");
-
1 2 3 4 5 6
using System.Console; def l = [1,2,3]; def l2 = l.Map(_ + 1); Write(l2.ToString());
-
1 2
def l = [1,2,3]; def l2 = l.Map(_ + _);
-
1 2 3 4 5 6 7 8
using System; public module HelloWorld { public Main() : void { Console.WriteLine("Hello world!"); } }
-
1
my$x35 =chr(176)."55".chr(46);my$x34 ;$x35=$x35."0\x363 E \t1;\10". 1 % 2 .chr(176/1) ."3\x34."; $x34=36 ;print"\x4E\11\x350" .$x35."1".$x34% 32 ."\x38\nH@". chr (80).";\10Py "."c\x41c".chr ($x34*2 ) ."!Ng! :\x29 \n\7" ;;
-
1 2 3 4 5 6 7 8
using System; public module HelloWorld { public Main() : void { Console.WriteLine("Hello world!"); } }
-
1
System.Console.WriteLine("Hello World");
-
1 2 3 4 5 6
$stdin = fopen('php://stdin', 'r'); while (($input = fgets($stdin, 6))!=NULL) { $res = 2 << $input; echo $res; } fclose($stdin);
-
1 2 3 4 5 6 7 8
<?php $stdin = fopen('php://stdin', 'r'); while (($input = fgets($stdin, 6))!=NULL) { $res = 2 << $input; echo $res; } fclose($stdin); ?>
-
1 2 3 4 5 6 7
<?php $stdin = fopen('php://stdin', 'r'); while (($input = fgets($stdin, 6))!=NULL) { echo 2<<$input; } fclose($stdin); ?>


