Closed ChristophP closed 4 years ago
@Tehnix It's done and released. Hope this solves your use case.
@ChristophP thanks so much for setting time away for this, it solves it perfectly while also accommodating the more complex cases! :)
@Tehnix Sweet, glad it helps. :-)
String -> Tree
as an alias for LeafList (String, Tree) -> Tree
using BranchList (String, Tree) -> Translations
, using foldTree and Translations. I would expect a list as input here. If it were just a Tree someone could pass a string value as a root object, which couldn't be handled by t. That would make fromTree look like this:Tree
,string
,object
,fromTree
and write a tests checking if t return the correct values when given a translations value that is custom built.Would you want to give the implementation a try? I can also do it but it'll likely be sometime next week till I find time.