To clarify, in haskell, there is an ord
function that gives the byte integer of a character (i.e. ord 'a'
yields 97
); and there is a char
function that takes the byte integer of a character and returns the character (i.e. char 97
yelds 'a'
.
What is the name of a collection of such functions? I'm not very mathematically literate (I'm working on it), but I found semirings on wikipedia. Do semirings provide an appropriate description?