Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for walkCh (0.03 sec)

  1. doc/go_spec.html

    	key         K
    	value       V
    }
    
    func (t *Tree[K, V]) walk(yield func(key K, val V) bool) bool {
    	return t == nil || t.left.walk(yield) && yield(t.key, t.value) && t.right.walk(yield)
    }
    
    func (t *Tree[K, V]) Walk(yield func(key K, val V) bool) {
    	t.walk(yield)
    }
    
    // walk tree t in-order
    var t Tree[string, int]
    for k, v := range t.Walk {
    	// process k, v
    }
    </pre>
    
    <p>
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue May 06 19:12:15 UTC 2025
    - 286.2K bytes
    - Viewed (0)
Back to top