rd = @record r { f1, f2}; rec = r(1,2); rdsetfmt(rd, @lambda(rec){ return sprintfa("", rec.f1, rec.f2); }); printf("%a\n", rec);