Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for AppendReverse (0.12 sec)

  1. src/go/constant/value.go

    	if x.l != nil {
    		x.s = strings.Join(reverse(x.appendReverse(nil)), "")
    		x.l = nil
    		x.r = nil
    	}
    	s := x.s
    	x.mu.Unlock()
    
    	return s
    }
    
    // reverse reverses x in place and returns it.
    func reverse(x []string) []string {
    	n := len(x)
    	for i := 0; i+i < n; i++ {
    		x[i], x[n-1-i] = x[n-1-i], x[i]
    	}
    	return x
    }
    
    // appendReverse appends to list all of x's subpieces, but in reverse,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 34K bytes
    - Viewed (0)
Back to top