Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for src (0.14 sec)

  1. doc/go1.17_spec.html

    	for i := 2; ; i++ {
    		ch <- i  // Send 'i' to channel 'ch'.
    	}
    }
    
    // Copy the values from channel 'src' to channel 'dst',
    // removing those divisible by 'prime'.
    func filter(src <-chan int, dst chan<- int, prime int) {
    	for i := range src {  // Loop over values received from 'src'.
    		if i%prime != 0 {
    			dst <- i  // Send 'i' to channel 'dst'.
    		}
    	}
    }
    
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
Back to top