The console

Printing, and the console’s help: help (or ?) explains a function, ?? shows a word and its value, and source shows a function’s code. See getting started.

print

Prints a value; a block is reduced first.

print value
  • value (any-type!)

write-line

Writes a value and a new line to the output.

write-line value
  • value (any-type!)

probe

Prints a value as mold shows it; gives the value.

probe value
  • value (any-type!)

help

Shows how to call a function, or what a word holds.

help 'word
  • 'word (any-type!): The word to explain

?

Shows how to call a function, or what a word holds.

? 'word
  • 'word (any-type!): The word to explain

??

Prints a word and its value.

?? 'word
  • 'word (any-word!)

source

Prints the source of a function.

source 'word
  • 'word (any-word!)