Hi,
I can't seem to be able to define following function:
getBindings e = (
b = "binding" ^ e.text;
childrenBindings = map getBindings e.elements;
if b == "binding" then
b :: childrenBindings
else:
childrenBindings
);
The compilation error is:
Function type ('a is {.elements is list?<'a>, .text is string}) -> list<string> is not ('a is {.elements is list?<'a>, .text is string}) -> string (self-binding)
Type mismatch: list<string> is not string
Is there a mistake in the function which I am not seeing, or is this really not possible in yeti?
Thanks,
Răzvan