private SetToStrFunDef() {
super("SetToStr", "Constructs a string from a set.", "fSx");
}
public Calc compileCall(ResolvedFunCall call, ExpCompiler compiler) {
Exp arg = call.getArg(0);
final ListCalc listCalc = compiler.compileList(arg);
if (((SetType) arg.getType()).getArity() == 1) {
return new AbstractStringCalc(call, new Calc[] {listCalc}) {
public String evaluateString(Evaluator evaluator) {
final List<Member> list =
(List<Member>) listCalc.evaluateList(evaluator);
return memberSetToStr(list);