add dict comparison function
This commit is contained in:
parent
48390b8556
commit
b4826605af
5 changed files with 57 additions and 24 deletions
|
|
@ -14,7 +14,12 @@ export const last = dict => dict.tree.end;
|
|||
|
||||
export const read = iter => {
|
||||
if (iter !== undefined && iter.valid) {
|
||||
return newRight(newProduct(newProduct(iter.key)(iter.value))(iter.clone().next()));
|
||||
return newRight(
|
||||
newProduct(
|
||||
newProduct(iter.key)(iter.value)
|
||||
(iter.clone().next())
|
||||
)
|
||||
);
|
||||
}
|
||||
else {
|
||||
return newLeft(unit);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue