Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for F0 (0.01 seconds)

  1. doc/go_spec.html

    for u = range 256 {
    }
    
    // invalid: 1e3 is a floating-point constant
    for range 1e3 {
    }
    
    // fibo generates the Fibonacci sequence
    fibo := func(yield func(x int) bool) {
    	f0, f1 := 0, 1
    	for yield(f0) {
    		f0, f1 = f1, f0+f1
    	}
    }
    
    // print the Fibonacci numbers below 1000:
    for x := range fibo {
    	if x >= 1000 {
    		break
    	}
    	fmt.Printf("%d ", x)
    }
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Wed Apr 01 23:39:18 GMT 2026
    - 287.8K bytes
    - Click Count (1)
Back to Top