Exemple #1
0
func (bt BindingTable) Repr() string {
	var builder eval.MapReprBuilder
	for k, v := range bt.inner {
		builder.WritePair(k.String(), v.Repr())
	}
	return builder.String()
}
Exemple #2
0
func (bt BindingTable) Repr(indent int) string {
	var builder eval.MapReprBuilder
	builder.Indent = indent
	for k, v := range bt.inner {
		builder.WritePair(parse.Quote(k.String()), v.Repr(eval.IncIndent(indent, 1)))
	}
	return builder.String()
}