"{p Useful as a placeholder where values are irrelevant}}"
" {p Useful as a placeholder where values are irrelevant}}"
]
]
openDoc=unlines[
openDoc=unlines[
"{section {title Open File}",
"{section {title Open File}",
"{p {em Usage:} open name \\{file: ...\\}}",
"{p {em Usage:} open name \\{file: ...\\}}",
"{p Opens a file and passes the file descriptor to the continuation in the second argument}}"
"{p Opens a file and passes the file descriptor to the continuation in the second argument}}"
]
]
readDoc=unlines[
readDoc=unlines[
"{section {title Read From File}",
"{section {title Read From File}",
"{p {em Usage:} read file n \\{str: ...\\}}",
"{p {em Usage:} read file n \\{str: ...\\}}",
"{p Reads a number of bytes from the given file and passes the resulting string to the continuation.}}"
"{p Reads a number of bytes from the given file and passes the resulting string to the continuation.}}"
]
]
writeDoc=unlines[
writeDoc=unlines[
"{section {title Write To File}",
"{section {title Write To File}",
"{p {em Usage:} write file str}",
"{p {em Usage:} write file str}",
"{p Writes the given bytes to the given file.}}"
"{p Writes the given bytes to the given file.}}"
]
]
closeDoc=unlines[
closeDoc=unlines[
"{section {title Close File}",
"{section {title Close File}",
"{p {em Usage:} close file}",
"{p {em Usage:} close file}",
"{p Closes a file.}}"
"{p Closes a file.}}"
]
]
stdoutDoc=unlines[
stdoutDoc=unlines[
"{section {title The Standard Output Descriptor}",
"{section {title The Standard Output Descriptor}",
"{p You can pass this to the 'write' function to",
" {p You can pass this to the 'write' function to",
" print a message to the screen}}"
" print a message to the screen}}"
]
]
stdinDoc=unlines[
stdinDoc=unlines[
"{section {title The Standard Input Descriptor}",
"{section {title The Standard Input Descriptor}",
"{p You can pass this to the 'read' function to",
" {p You can pass this to the 'read' function to",
" retrieve user-written text.}}"
" retrieve user-written text.}}"
]
]
addIntDoc=unlines[
addIntDoc=unlines[
"{section {title AddIntegers}",
"{section {title AddIntegers}",
"{p {em Usage:} addInt a b}",
"{p {em Usage:} addInt a b}",
"{p Adds two integers.}}"
"{p Adds two integers.}}"
]
]
subIntDoc=unlines[
subIntDoc=unlines[
"{section {title Subtract Integers}",
"{section {title Subtract Integers}",
"{p {em Usage:} subInt a b}",
"{p {em Usage:} subInt a b}",
"{p Subtracts two integers.}}"
"{p Subtracts two integers.}}"
]
]
mulIntDoc=unlines[
mulIntDoc=unlines[
"{section {title Multiply Integers}",
"{section {title Multiply Integers}",
"{p {em Usage:} mulInt a b}",
"{p {em Usage:} mulInt a b}",
"{p Multiplies two integers.}}"
"{p Multiplies two integers.}}"
]
]
divIntDoc=unlines[
divIntDoc=unlines[
"{section {title Divide Integers}",
"{section {title Divide Integers}",
"{p {em Usage:} divInt a b}",
"{p {em Usage:} divInt a b}",
"{p Divides two integers.}}"
"{p Divides two integers.}}"
]
]
cmpInt_ltDoc=unlines[
cmpInt_ltDoc=unlines[
"{section {title Compare Integers (lower than)}",
"{section {title Compare Integers (lower than)}",
"{p {em Usage:} cmpInt n m x y}",
"{p {em Usage:} cmpInt n m x y}",
"{p Returns x when n<m, and y otherwise.}}"
"{p Returns x when n<m, and y otherwise.}}"
]
]
cmpInt_eqDoc=unlines[
cmpInt_eqDoc=unlines[
"{section {title Compare Integers (equality)}",
"{section {title Compare Integers (equality)}",
"{p {em Usage:} cmpInt n m x y}",
"{p {em Usage:} cmpInt n m x y}",
"{p Returns x when n=m, and y otherwise.}}"
"{p Returns x when n=m, and y otherwise.}}"
]
]
addStringDoc=unlines[
addStringDoc=unlines[
"{section {title AddStrings}",
"{section {title AddStrings}",
"{p {em Usage:} addString a b}",
"{p {em Usage:} addString a b}",
"{p Adds two strings.}}"
"{p Adds two strings.}}"
]
]
stringLengthDoc=unlines[
stringLengthDoc=unlines[
"{section {title StringLength}",
"{section {title StringLength}",
"{p {em Usage:} stringLength s}",
"{p {em Usage:} stringLength s}",
"{p Gets the length of a string.}}"
"{p Gets the length of a string.}}"
]
]
showIntDoc="{section {title Show Number} Produces a string representation of its argument}"
showIntDoc="{section {title Show Number} Produces a string representation of its argument}"
mkArrayDoc="{section {title Make Array} {p Usage: mkArray n {i: ...}} {p Creates an array of size n, populated by calling the given function on every index from 0 to n-1}}"
mkArrayDoc="{section {title Make Array} {p Usage: mkArray n {i: ...}} {p Creates an array of size n, populated by callingthe given function on every index from 0 to n-1}}"
arrayLengthDoc="{section {title Get Array Length} {p Gets the length of an array.}}"
arrayLengthDoc="{section {title Get Array Length} {p Gets the length of an array.}}"
arrayAtDoc="{section {title Get Array Element} {p Usage: arrayAt arr i} {p Gets the element at index i in the array arr}}"
arrayAtDoc="{section {title Get Array Element} {p Usage: arrayAt arr i} {p Gets the element at index i in the array arr}}"
arraySetDoc="{section {title Set Array Element} {p Usage: arraySet arr i x k} {p Sets the element at index i, then evaluate k}}"
arraySetDoc="{section {title Set Array Element} {p Usage: arraySet arr i x k} {p Sets the element at index i, then evaluate k}}"