(arg DefinedSet)
| 833 | } |
| 834 | |
| 835 | func (lhs *AsPathSet) Append(arg DefinedSet) error { |
| 836 | if lhs.Type() != arg.Type() { |
| 837 | return fmt.Errorf("can't append to different type of defined-set") |
| 838 | } |
| 839 | lhs.list = append(lhs.list, arg.(*AsPathSet).list...) |
| 840 | lhs.singleList = append(lhs.singleList, arg.(*AsPathSet).singleList...) |
| 841 | return nil |
| 842 | } |
| 843 | |
| 844 | func (lhs *AsPathSet) Remove(arg DefinedSet) error { |
| 845 | if lhs.Type() != arg.Type() { |