func (lv List) Traverse(fn func(val *structpb.Value) error) error {
	for _, v := range lv.values {
		if err := fn(v); err != nil {
			return err
		}
	}
	return nil
}
// Traverse will execute fn for each Value contained in the List.
// If fn returns an error, the traverse is aborted and the error
// is returned.
Traverse will execute fn for each Value contained in the List.
If fn returns an error, the traverse is aborted and the error
is returned.
// Traverse will execute fn for each Value contained in the List . // If fn returns an error the traverse is aborted and the error // is returned .
func (lv List) Traverse(fn func(val *structpb.Value) error) error {
	for _, v := range lv.values {
		if err := fn(v); err != nil {
			return err
		}
	}
	return nil
}
func ( lv List ) Traverse ( fn func ( val * structpb . Value ) error ) error { for _ , v := range lv . values { if err := fn ( v ) ; err != nil { return err } } return nil }
Traverse will execute fn for each Value contained in the List.
Traverse will execute fn for each Value contained in the List .