Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for NewA (0.02 sec)

  1. internal/grid/types.go

    func (j *Array[T]) Value() []T {
    	if j.val == nil {
    		j.val = j.p.newA(10)
    	}
    	return j.val
    }
    
    // Append a value to the underlying array.
    // The returned Array is always the same as the one called.
    func (j *Array[T]) Append(v ...T) *Array[T] {
    	if j.val == nil {
    		j.val = j.p.newA(uint32(len(v)))
    	}
    	j.val = append(j.val, v...)
    	return j
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
Back to top