Noun.Order (Anoma v0.30.0)
I am the module implementing noun ordering functionality.
In particular, I implement functions such as dor/2
, gor/2
and mor/2
that provide a notion of partial ordering between nouns.
Summary
Functions
Link to this function
dor(a, b)
I am the dor function. I provide a partial ordeirng on bear nouns.
When both nouns are atoms, I check whether the first is less than or equal than the second.
If both are cells, I recurse on the heads unless they are the same. Otherwise I recurse on the tails.
Otherwise, I consider the cell the greater noun.
Link to this function
gor(a, b)
I am the gor function. I provide fast partial ordering on mugged nouns.
Link to this function
mor(a, b)
I am the mor function. I provide fast partial ordering on doubly-mugged nouns.