code: func Filter(result []Expression, input []Expression, filter func(Expression) bool) []Expression {
  	for _, e := range input {
  		if filter(e) {
  			result = append(result, e)
  		}
  	}
  	return result
  }
docs: // Filter the input expressions, append the results to result.