func (l *List) GetOrPut(v interface{} /* val */) (*El, bool) {
	cur := l.search(v, true, true)

	if cur != nil && !l.less(v, cur.val) {
		return cur, false
	}

	return l.rndEl(v), true
}
// GetOrPut gets first occurrence or add new and returns it.
// Second returned argument is true if there wasn't such element.
GetOrPut gets first occurrence or add new and returns it.
Second returned argument is true if there wasn't such element.
// GetOrPut gets first occurrence or add new and returns it . // Second returned argument is true if there wasn ' t such element .
func (l *List) GetOrPut(v interface{} ) (*El, bool) {
	cur := l.search(v, true, true)
	if cur != nil && !l.less(v, cur.val) {
		return cur, false
	}
	return l.rndEl(v), true
}
func ( l * List ) GetOrPut ( v interface { } ) ( * El , bool ) { cur := l . search ( v , true , true ) if cur != nil && ! l . less ( v , cur . val ) { return cur , false } return l . rndEl ( v ) , true }
GetOrPut gets first occurrence or add new and returns it.
GetOrPut gets first occurrence or add new and returns it .
/* val */