OLD | NEW |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 // CAUTION: If this file is not vector.go, it was generated | 5 // CAUTION: If this file is not vector.go, it was generated |
6 // automatically from vector.go - DO NOT EDIT in that case! | 6 // automatically from vector.go - DO NOT EDIT in that case! |
7 | 7 |
8 package vector | 8 package vector |
9 | 9 |
10 | 10 |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 close(c) | 206 close(c) |
207 } | 207 } |
208 | 208 |
209 | 209 |
210 // Channel iterator for range. | 210 // Channel iterator for range. |
211 func (p *IntVector) Iter() <-chan int { | 211 func (p *IntVector) Iter() <-chan int { |
212 c := make(chan int) | 212 c := make(chan int) |
213 go p.iterate(c) | 213 go p.iterate(c) |
214 return c | 214 return c |
215 } | 215 } |
OLD | NEW |