(t Type)
| 166 | } |
| 167 | |
| 168 | func (a array) Equal(t Type) bool { |
| 169 | if t == Any { |
| 170 | return true |
| 171 | } |
| 172 | at, ok := t.(array) |
| 173 | if !ok { |
| 174 | return false |
| 175 | } |
| 176 | if a.of.Equal(at.of) { |
| 177 | return true |
| 178 | } |
| 179 | return false |
| 180 | } |
| 181 | |
| 182 | func (a array) String() string { |
| 183 | return fmt.Sprintf("Array{%s}", a.of.String()) |