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 9
-module(prog). -export([main/0]). mealy_step(Input, {State, Outputs}, Fun) -> {NewState, Output} = Fun(State, Input), {NewState, [Output | Outputs]}. mealy(Fun, StartState, Inputs) ->
...
-
1 2 3 4 5 6 7 8 9
-module(prog). -export([main/0]). mealy_step(Input, {State, Outputs}, Fun) -> {NewState, Output} = Fun(State, Input), {NewState, [Output | Outputs]}. mealy(Fun, StartState, Inputs) ->
...
-
1 2 3 4 5 6 7 8 9
-module(prog). -export([main/0]). mealy_step(Input, {State, Outputs}, Fun) -> {NewState, Output} = Fun(State, Input), {NewState, [Output | Outputs]}. mealy(Fun, StartState, Inputs) ->
...
-
1 2 3 4 5 6 7 8 9
-module(prog). -export([main/0]). mealy_step(Input, {State, Outputs}, Fun) -> {NewState, Output} = Fun(State, Input), {NewState, [Output | Outputs]}. mealy(Fun, StartState, Inputs) ->
...
-
1 2 3 4 5 6 7 8 9
-module(prog). -export([main/0]). mealy_step(Input, {State, Outputs}, Fun) -> {NewState, Output} = Fun(State, Input), {NewState, [Output | Outputs]}. mealy(Fun, StartState, Inputs) ->
...
-
1 2 3 4 5 6 7 8 9
-module(prog). -export([main/0]). mealy_step(Input, {State, Outputs}, Fun) -> {NewState, Output} = Fun(State, Input), {NewState, [Output | Outputs]}. mealy(Fun, StartState, Inputs) ->
...
-
1 2 3 4 5 6 7 8 9
-module(prog). -export([main/0]). mealy_step(Input, {State, Outputs}, Fun) -> {NewState, Output} = Fun(State, Input), {NewState, [Output | Outputs]}. mealy(Fun, StartState, Inputs) ->
...
-
1 2 3 4 5 6 7 8 9
-module(prog). -export([main/0]). mealy_step(Input, {State, Outputs}, Fun) -> {NewState, Output} = Fun(State, Input), {NewState, [Output | Outputs]}. mealy(Fun, StartState, Inputs) ->
...
-
1 2 3 4 5 6 7 8 9
-module(prog). -export([main/0]). mealy_step(Input, {State, Outputs}, Fun) -> {NewState, Output} = Fun(State, Input), {NewState, [Output | Outputs]}. mealy(Fun, StartState, Inputs) ->
...
-
1 2 3 4 5 6 7 8 9
-module(prog). -export([main/0]). mealy_step(Input, {State, Outputs}, Fun) -> {NewState, Output} = Fun(State, Input), {NewState, [Output | Outputs]}. mealy(Fun, StartState, Inputs) ->
...
-
1 2 3 4 5 6 7 8 9
-module(prog). -export([main/0]). mealy_step(Input, {State, Outputs}, Fun) -> {NewState, Output} = Fun(State, Input), {NewState, [Output | Outputs]}. mealy(Fun, StartState, Inputs) ->
...
-
1 2 3 4 5 6 7 8 9
-module(prog). -export([main/0]). mealy_step(Input, {State, Outputs}, Fun) -> {NewState, Output} = Fun(State, Input), {NewState, [Output | Outputs]}. mealy(Fun, StartState, Inputs) ->
...
-
1 2 3 4 5 6 7 8
-module(prog). -export([main/0]). mealy_step(Input, {State, Outputs}, Fun) -> {NewState, Output} = Fun(State, Input), io:fwrite("~w|~w~n", [{State, Input}, {NewState, Output}]), {NewState, [Output | Outputs]}.
...
-
1 2 3 4 5 6 7 8 9
-module(prog). -export([main/0]). mealy_step(Input, {State, Outputs}, Fun) -> {NewState, Output} = Fun(State, Input), io:fwrite("~w|~w~n", [{State, Input}, {NewState, Output}]), {NewState, [Output | Outputs]}.
...
-
1 2 3 4 5 6 7 8 9
-module(prog). -export([main/0]). mealy_step(Input, {State, Outputs}, Fun) -> {NewState, Output} = Fun(State, Input), io:fwrite("~w|~w~n", [{State, Input}, {NewState, Output}]), {NewState, [Output | Outputs]}.
...
-
1 2 3 4 5 6 7 8
-module(prog). -export([main/0]). mealy_step(Input, {State, Outputs}, Fun) -> {NewState, Output} = Fun(State, Input), io:fwrite("~w|~w~n", [{State, Input}, {NewState, Output}]), {NewState, [Output | Outputs]}.
...
-
1 2 3 4 5 6 7 8
-module(prog). -export([main/0]). mealy_step(Input, {State, Outputs}, Fun) -> {NewState, Output} = Fun(State, Input), io:fwrite("~w|~w~n", [{State, Input}, {NewState, Output}]), {NewState, [Output | Outputs]}.
...
-
1 2 3 4 5 6 7 8
-module(prog). -export([main/0]). mealy_step(Input, {State, Outputs}, Fun) -> {NewState, Output} = Fun(State, Input), io:fwrite("~w|~w~n", [{State, Input}, {NewState, Output}]), {NewState, [Output | Outputs]}.
...
-
1 2 3 4 5 6 7 8 9
-module(prog). -export([main/0]). mealy_step(Input, {State, Outputs}, Fun) -> {NewState, Output} = Fun(State, Input), {NewState, [Output | Outputs]}. mealy(Fun, StartState, Inputs) ->
...
-
1 2 3 4 5 6 7 8 9
-module(prog). -export([main/0]). mealy_step(Input, {State, Outputs}, Fun) -> {NewState, Output} = Fun(State, Input), {NewState, [Output | Outputs]}. mealy(Fun, StartState, Inputs) ->
...
-
1 2 3 4 5 6 7 8 9
-module(prog). -export([main/0]). mealy_step(Input, {State, Outputs}, Fun) -> {NewState, Output} = Fun(State, Input), {NewState, [Output | Outputs]}. mealy(Fun, StartState, Inputs) ->
...
-
1 2 3 4 5 6 7 8 9
-module(prog). -export([main/0]). mealy_impl(_Fun, State, [], Result) -> {State, Result}; mealy_impl(Fun, State, [H | T], Result) -> {NewState, Output} = Fun(State, H), mealy_impl(Fun, NewState, T, [Output | Result]).
...
-
1 2 3 4 5 6 7 8 9
-module(prog). -export([main/0]). mealy_impl(_Fun, State, [], Result) -> {State, Result}; mealy_impl(Fun, State, [H | T], Result) -> {NewState, Output} = Fun(State, H), mealy_impl(Fun, NewState, T, [Output | Result]).
...
-
1 2 3 4 5 6 7 8 9
-module(prog). -export([main/0]). mealy_impl(_Fun, State, [], Result) -> {State, Result}; mealy_impl(Fun, State, [H | T], Result) -> {NewState, Output} = Fun(State, H), mealy_impl(Fun, NewState, T, [Output | Result]).
...
-
1 2 3 4 5 6 7 8 9
-module(prog). -export([main/0]). mealy_impl(_Fun, State, [], Result) -> {State, Result}; mealy_impl(Fun, State, [H | T], Result) -> {NewState, Output} = Fun(State, H), mealy_impl(Fun, NewState, T, [Output | Result]).
...
-
1 2 3 4 5 6 7 8 9
-module(prog). -export([main/0]). mealy_impl(_Fun, State, [], Result) -> {State, Result}; mealy_impl(Fun, State, [H | T], Result) -> {NewState, Output} = Fun(State, H), mealy_impl(Fun, NewState, T, [Output | Result]).
...
-
1 2 3 4 5 6 7 8 9
-module(prog). -export([main/0]). mealy_impl(_Fun, State, [], Result) -> {State, Result}; mealy_impl(Fun, State, [H | T], Result) -> {NewState, Output} = Fun(State, H), mealy_impl(Fun, NewState, T, [Output | Result]).
...
-
1 2 3 4 5 6 7 8 9
-module(prog). -export([main/0]). mealy_impl(_Fun, State, [], Result) -> {State, Result}; mealy_impl(Fun, State, [H | T], Result) -> {NewState, Output} = Fun(State, H), mealy_impl(Fun, NewState, T, [Output | Result]).
...
-
1 2 3 4 5 6 7 8 9
-module(prog). -export([main/0]). mealy_impl(_Fun, State, [], Result) -> {State, Result}; mealy_impl(Fun, State, [H | T], Result) -> {NewState, Output} = Fun(State, H), mealy_impl(Fun, NewState, T, [Output | Result]).
...
-
1 2 3 4 5 6 7 8 9
-module(prog). -export([main/0]). mealy_impl(_Fun, State, [], Result) -> {State, Result}; mealy_impl(Fun, State, [H | T], Result) -> {NewState, Output} = Fun(State, H), mealy_impl(Fun, NewState, T, [Output | Result]).
...


