diff --git a/operand-list.go b/operand-list.go index c7183d8..7bea937 100644 --- a/operand-list.go +++ b/operand-list.go @@ -46,6 +46,22 @@ func (ls *ListType) String() string { return ls.ToString(0) } +func newListA(listAny ...any) (list *ListType) { + return newList(listAny) +} + +func newList(listAny []any) (list *ListType) { + if listAny != nil { + ls := make(ListType, len(listAny)) + for i, item := range listAny { + ls[i] = item + } + list = &ls + } + return +} + + // -------- list term func newListTermA(args ...*term) *term { return newListTerm(args)