progress towards saving export string in correct format (but note there is currently an exception somewhere because of changes; need to fix)

This commit is contained in:
2025-08-09 11:56:18 +01:00
parent 99a47a410f
commit d6f7583273
4 changed files with 27 additions and 8 deletions

View File

@@ -46,6 +46,17 @@ struct
foldl (f, right, acc)
end
fun foldr (f, tree, acc) =
case tree of
LEAF => acc
| NODE {value, left, right, ...} =>
let
val acc = foldr (f, right, acc)
val acc = f (value, acc)
in
foldr (f, left, acc)
end
fun map (f, tree) =
case tree of
LEAF => LEAF