Add initial pair printing
This commit is contained in:
parent
441112648e
commit
a70af22eaf
@ -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\
|
||||
|
Loading…
x
Reference in New Issue
Block a user