|
@@ -112,13 +112,13 @@ Boolean function string_startswith(a: String, b: String):
|
|
|
while (i < string_len(b)):
|
|
|
if (string_get(a, i) != string_get(b, i)):
|
|
|
return False
|
|
|
- i = i + 1
|
|
|
+ i = i + 1
|
|
|
|
|
|
return True
|
|
|
|
|
|
//Boolean function has_value(a: Element) = ?primitives/has_value
|
|
|
-//Boolean function has_value(a: Element):
|
|
|
- return bool_or(bool_or(bool_or(is_physical_action, is_physical_int(a)), is_physical_float(a)), bool_or(is_physical_string(a), is_physical_boolean(a))))
|
|
|
+Boolean function has_value(a: Element):
|
|
|
+ return bool_or(bool_or(bool_or(is_physical_action, is_physical_int(a)), is_physical_float(a)), bool_or(is_physical_string(a), is_physical_boolean(a)))
|
|
|
|
|
|
// TODO: implement these explicitly and split off this code from the primitives completely
|
|
|
Boolean function float_gte(a: Float, b: Float) = ?primitives/float_gte
|