}
}
private static void printResult(Object result) {
if (result instanceof Closure) {
Closure fun = (Closure) result;
System.out.println("#function: " + fun.name);
} else if (result instanceof Set) {
String r = result.toString();
System.out.println('{' + r.substring(1, r.length() - 1) + '}');
}