Exemplo n.º 1
0
func Setting(s *term.Setting) term.T {
	lines := s.Lines()
	quotedLines := make([]term.T, len(lines))
	for i, line := range lines {
		quotedLines[i] = SettingLine(line)
	}
	return QuotedSetting.T(List(quotedLines))
}
Exemplo n.º 2
0
func addNames(s *term.Setting) *term.SettingS {
	names := makeNames(s.TotalSlots())
	return &term.SettingS{s, names}
}