|
|
@@ -494,3 +494,11 @@ def set_difference(a, b, **remainder):
|
|
|
res, = yield [("CN", [])]
|
|
|
yield [("CD", [res, v, res]) for v in result]
|
|
|
yield [("RETURN", [{'id': res}])]
|
|
|
+
|
|
|
+def string_startswith(a, b, **remainder):
|
|
|
+ if "value" not in a:
|
|
|
+ a['value'], = yield [("RV", [a['id']])]
|
|
|
+ if "value" not in b:
|
|
|
+ b['value'], = yield [("RV", [b['id']])]
|
|
|
+
|
|
|
+ yield [("RETURN", [{"value": a['value'].startswith(b['value'])}])]
|