Idris2/tests/idris2/docs001/expected
Edwin Brady ff46a8db14 Initial implementation of :doc
It's not pretty, but at least it exists now
2020-07-08 15:52:57 +01:00

33 lines
550 B
Plaintext

Main> Prelude.plus
Add two natural numbers.
@ x the number to case-split on
@ y the other numberpublic export
Totality: total
Main> Prelude.Nat
Natural numbers: unbounded, unsigned integers which can be pattern matched.
Constructors:
Z
Zero.
S
Successor.
Main> Prelude.List
Generic lists.
Constructors:
Nil
Empty list
::
Main> Prelude.Show
Things that have a canonical `String` representation.
Main> Prelude.show
Convert a value to its `String` representation.
@ x the value to convert
Totality: total
Main> Bye for now!