code: func NewBindingsV1(locals *ast.ValueMap) (result []*BindingV1) {
  	result = make([]*BindingV1, 0, locals.Len())
  	locals.Iter(func(key, value ast.Value) bool {
  		result = append(result, &BindingV1{
  			Key:   &ast.Term{Value: key},
  			Value: &ast.Term{Value: value},
  		})
  		return false
  	})
  	return result
  }
docs: // NewBindingsV1 returns a new BindingsV1 object.