Playground

Write an Ether program and run it. The output shows what the program printed with debug and the values it left, top first. Choose written in Ether to run it on the 51 kernel words, with the rest of the language loaded from its Ether definitions.

<< Words that are not defined are pushed; debug prints the top value. >>
" Hello, world! " debug

{ dup # 2 swap less-than
  { del # 1 }
  { dup -- factorial * }
  either } => factorial

[ # 1 # 2 # 3 # 4 # 5 # 6 ] { factorial } map debug
Hello, world!
( 1 2 6 24 120 720 )
values: ( )

Programs run in your browser and stop after 10 seconds. New to Ether? Start with the tutorial.