Add initial pair printing

This commit is contained in:
Jonathan Turner 2009-07-02 19:26:25 +00:00
parent 441112648e
commit a70af22eaf

View File

@ -5,6 +5,9 @@
#define CHAISCRIPT_PRELUDE_HPP_
const char *chaiscript_prelude = " \n\
def to_string(x) : call_exists(first, x) && call_exists(second, x) { \n\
\"<\" + x.first.to_string() + \", \" + x.second.to_string() + \">\"\n\
}\n\
def to_string(x) : call_exists(range, x) { \n\
\"[\" + x.join(\", \") + \"]\"\n\
}\n\