code: func removeFromList(element interface{}, l []interface{}) ([]interface{}, bool) {
  	for i := 0; i < len(l); i++ {
  		if l[i] == element {
  			last := len(l) - 1
  			l[i] = l[last]
  			l[last] = nil
  			l = l[:last]
  			return shrinkAsNeeded(l), true
  		}
  	}
  	return l, false
  }
docs: // Removes an element from a list.