diff --git a/include/chaiscript/language/chaiscript_prelude.hpp b/include/chaiscript/language/chaiscript_prelude.hpp index 39d0111..4c4402e 100644 --- a/include/chaiscript/language/chaiscript_prelude.hpp +++ b/include/chaiscript/language/chaiscript_prelude.hpp @@ -41,7 +41,7 @@ def odd(x) { if (x % 2 == 1) { true } else { false } } \ # Returns true if the value is even\n\ def even(x) { if (x % 2 == 0) { true } else { false } } \ # Pushes the second value onto the container first value while making a clone of the value\n\ -def push_back(container, x) : call_exists(push_back_ref, container) { container.push_back_ref(clone(x)) } \n\ +def push_back(container, x) : call_exists(push_back_ref, container, x) { container.push_back_ref(clone(x)) } \n\ # Inserts the third value at the position of the second value into the container of the first\n\ # while making a clone. \n\ def insert_at(container, pos, x) { container.insert_ref_at(pos, clone(x)); } \n\