Mini Module
Types and nested modules
| Type/Module | Description |
|
Module for writing natural numbers with an "N" postfix (e.g 0N, 99N, ...) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The type Nat represents natural numbers starting at 0. |
|
|
|
|
|
|
|
|
|
|
|
|
Functions and values
| Function or value |
Description
|
Full Usage:
error s
Parameters:
string
Returns: 'T
|
raises an exception with the given error message
|
Full Usage:
getchar ()
Parameters:
unit
Returns: char
|
reads a single character from the console
|
Full Usage:
getline ()
Parameters:
unit
Returns: string
|
Reads a line from the console. Raises an EOF exception if no more line is available.
|
Full Usage:
implode xs
Parameters:
char list
Returns: string
|
Convert a list of characters into a string.
|
Full Usage:
panic s
Parameters:
string
Returns: 'T
|
simply panics
|
Full Usage:
print a
Parameters:
'T
|
writes a string to the console and starts a new line
|
Full Usage:
putchar c
Parameters:
char
|
Outputs a single character to the console
|
Full Usage:
putline s
Parameters:
string
|
writes a string to the console and starts a new line
|
Full Usage:
putstring s
Parameters:
string
|
writes a string to the console
|
|
|
Full Usage:
show a
Parameters:
'T
Returns: string
|
Converts a value to a string representation
|
|
testify