query.go
func (iter Enumerator) Take(n uint) Enumerator {
	results := make(chan interface{})

	go func() {
		defer close(results)
		i := uint(0)
		for entry := range iter {
			if i >= n {
				return
			}
			i++
			results <- entry
		}
	}()

	return results
}
func (iter Enumerator) Take(n uint) Enumerator {
	results := make(chan interface{})

	go func() {
		defer close(results)
		i := uint(0)
		for entry := range iter {
			if i >= n {
				return
			}
			i++
			results <- entry
		}
	}()

	return results
}
func ( iter Enumerator ) Take ( n uint ) Enumerator { results := make ( chan interface { } ) go func ( ) { defer close ( results ) i := uint ( 0 ) for entry := range iter { if i >= n { return } i ++ results <- entry } } ( ) return results }
// Take retreives just the first 'n' elements from an Enumerator.
Take retreives just the first n elements from an Enumerator .